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

Uploaded Python 3

File details

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

File metadata

  • Download URL: NetSuite-Connector-0.0.7.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.7.tar.gz
Algorithm Hash digest
SHA256 aeea12f1a7d75f4177e55ffaded049c4268f1fb55b19095854676b2aea6d47a7
MD5 7e059a424d67e13533112db51d6a6caa
BLAKE2b-256 4362d1e543eff24c81b44d319dd73e56f7a80ab5e582e35352090ebc267fe0e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for NetSuite_Connector-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 b904743c8cc68dc7a3387cd7151d00926a429fe25baf266b07c1943c00b0a6bb
MD5 5d1f56076636621bef853d7dca4112f8
BLAKE2b-256 4595d50e45bf508d5cf0ebb8c3bc5a2714bc931f96248701707cbbdf55b65ef1

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