Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fylein/netsuite-restlets
To add different NetSuite Suite Scripts along with a python script to run them
https://github.com/fylein/netsuite-restlets
team-integrations
Last synced: about 2 months ago
JSON representation
To add different NetSuite Suite Scripts along with a python script to run them
- Host: GitHub
- URL: https://github.com/fylein/netsuite-restlets
- Owner: fylein
- License: mit
- Created: 2021-05-12T12:47:41.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-24T14:37:12.000Z (2 months ago)
- Last Synced: 2024-10-25T18:40:34.507Z (2 months ago)
- Topics: team-integrations
- Language: JavaScript
- Size: 34.2 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NetSuite RestLets
NetSuite Suite Script examples along with a python script to run them### List of Restlets -
* Create Credit Card Charge
* Create Credit Card Refund### How to run -
* Go to the folder `credit_card_charge_restlet````bash
cd credit_card_charge_restlet
````
* Make a copy of the `setup_template.sh` file
```bash
cp setup_template.sh setup.sh
```* Add correct values in the setup.sh file for the environment variables
```bash
#!/bin/bash# NetSuite Token Based Access Credentials
export ACCOUNT='NETSUITE ACCOUNT ID'
export CONSUMER_KEY='NETSUITE CONSUMER KEY'
export CONSUMER_SECRET='NETSUITE CONSUMER SECRET'
export TOKEN_KEY='NETSUITE TOKEN KEY'
export TOKEN_SECRET='NETSUITE TOKEN SECRET'# RESTlet Details
export RESTLET_SCRIPT_ID='NETSUITE RESTLET SCRIPT ID'
export RESTLET_DEPLOYMENT_ID='NETSUITE RESTLET DEPLOY ID'
```* Install python requirements
```bash
pip install -r requirements.txt
```* Run the python script to access deployed Restlet
```bash
source setup.sh && python create_credit_card_charge.py
```