Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can someone provide some simple sample code of how I would use C# to connect to Netsuites Adapter using there restlets and API's.

I have not delved into the relm of using Web API's yet so I am not to familiar on how to use the HTTPwebRequest and Response objects or even the Web Client object. I believe I want to use the OAuth to Authenticate passing in my security tokens ect... I just do not know how to set this up.

I believe if I can get a small sample of getting a vendor or all vendors from a GET as well as the connection to make the request, I think I would be able to move forward with my coding.

Thanks,
KSS.

What I have tried:

Vast searching on the web, only shows very little on this and mostly in other dev languages, and NS docs are of no help.
Posted
Updated 4-May-18 8:54am
Comments
BillWoodruff 3-May-18 20:38pm    
Have you tried: SuiteTalk Sample Applications - NetSuite
www.netsuite.com/portal/developers/resources/suitetalk-sample-applications.shtml
In order to familiarize yourself with NetSuite web services, we encourage you to download our sample applications, which are available in Java and C#. These are command-line driven applications that illustrate how to use some of the key features of the platform. The sample applications are built with version 2017.2.

Maybe RestSharp will be of interest to you: GitHub - restsharp/RestSharp: Simple REST and HTTP API Client for .NET[^]
 
Share this answer
 
Hi all, thank you for your advice but they do not help me. I have looked at Netsuites documentation and there netsuite suitetalk example. The example uses Web Services, which I do understand I also understand WCF services. But NS is wanting me to use their Restlet API's. I am new to Web API's and am looking for an example on how to connect to NS and just use one API to GET vendors. Also ideally I want to use OAuth and not the NLAuth. I have all the account info. and consumerkey's and token key's that I need to use, I just do not know how to use the HTTPWebRequest to send the info into the Header ect.. Plus NS Example demo is from 1999.
 
Share this answer
 
v2
Comments
Member 13932604 23-Jan-19 9:03am    
Hi, Did you find any solution? I have similar issue. I try HTTPWebRequest but it returns error cross origin error.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900