Skip to main content

NetSuite Connector

Project description

NetSuite-Connector

Installation

Only Restlet support:

$ pip install NetSuite-Connector

Get Started

The following examples shows how to use this module.

RESTlet GET

from NetSuite_Connector.NetSuite import NetSuite
nt = NetSuite(
    account_id=123456,
    consumer_keys=dict(consumer_key="2345678", consumer_secret="3456yhg"),
    token_keys=dict(token_id="wfdbfdsdfg", token_secret="efguhfjoidejhfije"),
)

x = nt.get(
    url="https://xxxx.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=xxxx&deploy=xxxx",
    headers={"Content-Type": "application/json"},
    params={}
)
print(x.__dict__)
# Response <200>

RESTlet PUT - POST

from NetSuite_Connector.NetSuite import NetSuite
nt = NetSuite(
    account_id=123456,
    consumer_keys=dict(consumer_key="2345678", consumer_secret="3456yhg"),
    token_keys=dict(token_id="wfdbfdsdfg", token_secret="efguhfjoidejhfije"),
)
body={"foo":"bar"}
x = nt.post(
    url="https://xxxx.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=xxxx&deploy=xxxx",
    headers={"Content-Type": "application/json"},
    params={},
    body=body
)
print(x.__dict__)
# Response <200>

TODO

  • DELETE Method
  • JDBC Connection Support

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

NetSuite-Connector-0.0.4.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

NetSuite_Connector-0.0.4-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file NetSuite-Connector-0.0.4.tar.gz.

File metadata

  • Download URL: NetSuite-Connector-0.0.4.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for NetSuite-Connector-0.0.4.tar.gz
Algorithm Hash digest
SHA256 85dd4f969f4942d8b3126db6f83131650147deeab0703a7e769aa673253b88bb
MD5 db1b86b5b4111b772569ba6414defc3f
BLAKE2b-256 b584cc17855eef29b2dcd3995764302a41e309dfef377fdbdd5aed0d685af9f5

See more details on using hashes here.

File details

Details for the file NetSuite_Connector-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for NetSuite_Connector-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 79c7d7e19fbe800ec866a330486c27710da71f0e53267431684424ab61c5407d
MD5 aec987cc3537877a66891c248ac02f9a
BLAKE2b-256 8b7caf582895c775459ea9bdb550b82a0ff3ff1af5a92f4a0df936066d78fd92

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page