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.6.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.6-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: NetSuite-Connector-0.0.6.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.6.tar.gz
Algorithm Hash digest
SHA256 5f6f99b397393f43c9baf96a49283a90f2d7e94482d1824f19408923fd3fa158
MD5 91e9302b55216dc292f46100bfccc71d
BLAKE2b-256 3089604c2351793b0e9c2a95d0f1f1bcd08b1d31e6b540ef57f4ddaf9956bb90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for NetSuite_Connector-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b2adad508f2d87eeabd9fed11eba845e28ceb328f39120b58345484372775f2d
MD5 dc5d89cbf689a990fd2224d5078b9e1c
BLAKE2b-256 b4dc59b3ce74c367218be29c9e14a2a9ab886edba8b88a675d9641cbb74309bc

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