This is a budding Netsuite Rest Api SDK
You'll need your Netsuite REST API credentials handy:
- CONSUMER KEY
- CONSUMER SECRET
- TOKEN
- TOKEN SECRET
- REALM
At the moment you'll also need to know what endpoints and actions you'll want to reach. Some knowledge of he Netsuite REST API will be needed.
See the unit test for example.
NetsuiteRequest netsuiteRequest = new NetsuiteRequest(consumerKey, consumerSecret, token, tokenSecret, realm);
string urlString = $"/customer/{testId}";
HttpMethod httpMethod = HttpMethod.Get;
JsonDocument result = await netsuiteRequest.Request(urlString, httpMethod);
JsonObject body = new();
body.Add("q", $"SELECT * FROM customer where email = '{testEmail}'");
var result = await netsuiteRequest.SuiteQlRequest(body, 1);
The hope is by returning a JsonDocument
it provides a flexible format that the caller can then box however they need.
This is nominally a fork of alejandrofierro/netsuite-rest-csharp though I'm not sure any original code remains.