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

Uploaded Python 3

File details

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

File metadata

  • Download URL: NetSuite-Connector-0.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 8ff50eab2dbad3a3f67bb8edb8779e2c717bc1752cfd89a285163caaa2af4407
MD5 8669abb57ee0eee0cb2bacadb588797b
BLAKE2b-256 65d410c1068f6dea8adc2492b261c32b88058dc94c62673bc8fd630af7fa30a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for NetSuite_Connector-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8f94c9d055380b54c9924ab293ae5b0b5714d367292f4a14f53409f00956b8d1
MD5 78fbc6b95f867cc14c511de9d99f37d3
BLAKE2b-256 34db0a2f42a158d9965c3661b434918afe8e963611f8f67c7e9bbbadb9ce94d6

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