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.3.tar.gz (3.6 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.3-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: NetSuite-Connector-0.0.3.tar.gz
  • Upload date:
  • Size: 3.6 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.3.tar.gz
Algorithm Hash digest
SHA256 f0397ffdae2bda4f3eb0dee201de5a39c69cee56e848b405cf9e47fea40747f5
MD5 5845c4648af275b585bde609ddeafa3e
BLAKE2b-256 93d237cfcae157650b421e7f2829779d0b6df40178557f77efe2fe9206a303a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for NetSuite_Connector-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b2203080d15162fa1b9fd4820c9120e14fdc64270d5737e2c0a210d62c1f1012
MD5 a11e00e01d9043628637af8f79adb257
BLAKE2b-256 8ab86a1eb762eafda13dfb3c5f90a45ec680b0eaafd0d2b7b987c3958cd1329f

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