Guessing I must be missing something obvious. Cha...
# integrations
c
Guessing I must be missing something obvious. Changing the URLs to the SuiteQL ones keeps returning me error: "error="token_rejected", error_description="Invalid login attempt.""... But my TBA credentials work perfectly fine with a RESTlet URL instead... 😕
m
what's the URL you are hitting
c
i
What language are you working in?
We are also using the correct URL https://XXXX-sb1.suitetalk.api.netsuite.com/services/rest/query/v1/suiteql?limit=1000&offset=0 Remember to set the header "Prefer: transient" and your OAuth authorization has to be perfect, but if it works for restlets; but not SuiteQL then maybe its the role rights?
c
Nah, not the role. I able to connect without any issues using Postman. Let me make sure that I've added the prefer header.
Yeah, still no luck. My guess is that the way the signature is created. The RESTlet one includes all the custom fields (query string). For the REST API, I've tried doing the same, but still no luck.
m
so you are creating the signature manually? or using postman?
there are a lot of gotchas when you do it manually hah
c
Postman works fine. When I try to replicate it manually, it fails. Though it works fine for RESTlets, both ways... 😕
m
do you have a code snippet of how you are generating the signature
m
For a recent Java-based integration, I ended up using the OAuthParameters class from Google. There are some code examples online to calculate the signature manually instead, I could dig one or two up if needed.
i
In c# I used an OAuth nuget library just to generate the correct signatures etc,.