I have an analytics app where people can plug their NetSuite account. Ideally, I would also retrieve some meta-data about the NetSuite account itself (ex: company name, etc) to make the analytics results more readable.
Does the NetSuite SuiteTalk SOAP API offers the possibility to retrieve meta-data about the NetSuite account itself?
Yes, you can get most of the company information using Configuration APIs
var companyinfo = nlapiLoadConfiguration('companyinformation');
var companyName = companyInfo.getFieldValue('companyname');
For a list of complete available fields please read "Preference Names and IDs"
EDIT:
Since, in SuiteTalk API, there is no specific API to fetch company information. I would recommend to write a RESTlet using above code and then access it via HTTPS in your Analytics application. If your application has to support multiple NetSuite account you may want to bundle your RESTlet.
In case someone needed to get the Company name, took me days to figure out so im sharing. You can use the token information endpoint defined here https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/chapter_157017286140.html
Calling a token endpoint to obtain user information based on a token
The tokeninfo endpoint returns information about a user based on the access token. The endpoint is https://{accountID}.restlets.api.netsuite.com/rest/tokeninfo, where is a variable for the company’s account ID. A response to a GET request contains data in JSON format, including information such as: Company Name, Company ID (account ID), Role Name, Role ID, Entity ID
NetSuite provides a Roles service that contains some very limited metadata about the account (Name and ID). See the Help Document titled "Using the REST roles Service to Get User Accounts, Roles, and Domains".
Related
I'm not getting the "descriptor" in Profile API response. This I need to save in database to identify whether he/she is a returning user on our web portal or a new user.
Did some research on Azure devops REST APIs to find that, there is something called "descriptor" which is a unique id for any user on Azure devops platform.
For that, I tried Profile REST API endpoint - https://app.vssps.visualstudio.com/_apis/profile/profiles/me?api-version=7.0
I need this descriptor or unique id because to identify whether a user is returning user or new user based on which I can create account or simply sign in. In other words, I'm implementing Oauth flow to Signup with Azure devops.
However, I get some "id" in Profile API response but that is not unique across different Azure devops accounts or organizations.
Any ideas on how to get "descriptor"? can we get in Profile API? or any other API?
Thanks in advance
Any ideas on how to get "descriptor"?
We cannot get the "descriptor" using the Profiles API.
To get the "descriptor" we can use Users - List - REST API (Azure DevOps Graph)
Alternately, we can use the following REST API for the currently logged in user:
https://dev.azure.com/{organization}/_apis/connectiondata
We have a channel oauth token from a channel owner and we are able to use the YouTube Analytics API to get details, including revenue, on the channel/videos.
I would like to use the YouTube Reporting API to create a report that we need daily and not use the more resource limited Analytics API but I am not able to see the larger list (43) of report types that include system managed reports with revenue, such as content_owner_ad_revenue_raw_a1 and content_owner_estimated_revenue_a1 with any value for the onBehalfOfContentOwner argument in a service.reportTypes().list API call.
I can see a list of 43 available reports when using a CMS oauth token, passing the partner_id value as the onBehalfOfContentOwner.
I can not find a working value when using a channel oauth token, any value I tried (oid for the video for example) results in an error response.
When I use None as the value for onBehalfOfContentOwner I see a different list (for both cms and channel oauth) of 18 reports that do not include any revenue data.
What value should I use with a channel oauth to get the revenue information from Reporting API, similar data that I am able to get from Analytics API using the same token?
Snippet from the list of 43 report types that I see when using cms partner_id on a CMS level is attached.
The list of 18 report types that I get when I pass None to onBehalfOfContentOwner is also attached (the same list for cms and channel oauth).
I tried the following:
service.reportTypes().list(
onBehalfOfContentOwner=oid,
includeSystemManaged=True
).execute()
returns error, any other value I could think of instead of oid returns error
with
service.reportTypes().list(
onBehalfOfContentOwner=None,
includeSystemManaged=True
).execute()
I get a list of 18 report types that doesn't include revenue information, also there is no systemManaged column.
Abstract
I develop a Google API integration for a Saas product.
One of its functions is to retrieve the email and displayName of the participants of an event registered in Google Calendar.(ref 1, same issue is reported)
At first I try to get email and display name from get method for google calendar events resources,but I found that many event participants have an email but no displayName.( ref 2,3 )
Then, I try to use google people api to get displayName from email but I couldn't find the way to get it.
Question
If you know the way to get displayName from google account email, please tell me how to do it.
Reference
Google Calendar API: Display Name doesn't work
Google Calendar API, Events Resource representations
Google Calendar API, Events Resource representations
The displayName availability depends either from that account's Name set at Google profile) or from the API caller's contact List in Google Contact.
If the caller and the affected account are within the same Google Workspace environment, then the domain's user profile Name is taken into account.
If that account is added to the caller's Contacts, then it is also possible to retrieve its Display Name via People API.
If the affected account doesn't have a name set nor it is within the caller's contacts, that's expected behavior.
Does anyone know why is CorpPass Id a required field for "Update/Delete course run with sessions" API? Since this will be an NRIC, would it be a sensitive information to be used in the request body?
Referring to the API: https://developer.ssg-wsg.gov.sg/webapp/docs/product/6kYpfJEWVb7NyYVVHvUmHi/group/374zmR5D0tQeS87eA1hrLV/api/4i96CWAYWH6uGhkhGMZxHd/version/3egIPKn3WK27liSToemjDV
Based on the API page, I do not see where Corppass ID is being referenced. Do provide more details if you have a technical query for the API.
However, based on the description: API is only available to Corppass users - and if you are able to subscribe to it then you are a Corporate Developer. For this query, it would be more appropriate if you can reach out to their servicedesk for details instead: https://developer.ssg-wsg.gov.sg/webapp/faq?anchor=WhoCanIContactIfIHaveQuestionsAboutTheseAPIs
I am trying to use the Ebay API to get completed transactions for a seller(s) that is using a different account from my developer account. I've looked into GetSellerTransactions and GetOrders. Unfortunately, I am not sure if it's possible to specify a User ID different from mine. Could you point me to working example of how to do this?
To get transactions for a user you should be first authorized by that user.
You will need a developer account for that.
This links will guide you
http://developer.ebay.com/DevZone/XML/docs/WebHelp/wwhelp/wwhimpl/common/html/wwhelp.htm?context=eBay_XML_API&file=GettingTokens-Getting_Tokens_for_Applications_with_Multiple_Users.html
http://developer.ebay.com/DevZone/XML/docs/WebHelp/wwhelp/wwhimpl/common/html/wwhelp.htm?context=eBay_XML_API&file=DevAndTestApplications-Testing_Applications.html
Once you get the user token for a user you need to send them along with your developer credentials to make the getOrders API call for that particular user.