Retrieving multiple Organisations from a single logon - through API - xero-api

On the Xero website, i can click on "My Xero" and it will return a list of organisations that i have created. Is it possible to return this list of organisations through the API functionality
Currently im logging in (through oauth) and then i only have access to that one organisation that the client selected. but im looking for a list of organisations registered to the xero profile

Unfortunately not - the OAuth 1.0a process results in an access token that is specific to the Xero organisation, rather than the Xero user, so it's not feasible to have an endpoint that lists organisations for a user.

Related

Netsuite - Do Netsuite provide API related to user operations or user provisioning?

I went through the API collection, but I did not find API related to users. For example getting user list, creating user, updating user, deleting user.

How do I get Approved to use the restricted LinkedIn Connections API?

I want to be able to get the first-degree connections of an authorized user and import them into my mobile app.
How do I get Linkedin to give me access to their restricted APIs??
I tried to use the Connections API, but I got an error saying:
"Not enough permissions to access: GET-viewer /connections"
I need to have these scopes added to my app:
r_1st_connections
r_compliance
From Linkedin Developer Support:
"Unfortunately we cannot grant access to the connections API, this endpoint is part of our compliance API, which is only granted to partners who are helping Regulated LinkedIn Members and Customers facilitate regulatory compliant usage of Social Media. (i.e.- it exists solely for monitoring and auditing activity where such monitoring/auditing is legally required by the SEC)." Hence, the permission error.".
Hope you have created a linkedin App, if not then create it from here https://developer.linkedin.com/
Then you need to apply for LinkedIn product "Marketing Developer Platform". It takes 4-5 working days to get approval from linkedin team.
Once you get access to this, it will allow you to use the auth scope
r_1st_connections_size
Use your 1st-degree connections' data

How do you pull customer data from Paypal?

What is the right procedure for pulling data about a customer (using OAuth to "Connect with Paypal" similar to the functionality that Stripe and Square provide) from Paypal?
The paypal documentation is confusing in two ways -
The OAuth scopes shown only have basic profile information like email, address, name, etc. and the link to the attributes page in the Account Information line item seems broken.
Other places mention that you have to sign onto the Paypal partner program to pull data on behalf of third parties.
So, for anyone that has gone through this - what is the right way to proceed/do I have to sign up to Paypal partner program? Is Permissions the right API to use?
I know broadly that connecting and fetching paypal account data is possible since, for example, Kabbage allows you to link your Paypal account and pulls data from it directly.
Connect with PayPal is so a user can click the CwPP button, sign into PayPal agreeing to give you access to certain profile information (based on the selected scopes) -- and then once they grant that permission and return, you're able to use the provided authorization code to access their profile information with its API.
In order to use CwPP in the live environment, your CwPP app has to be approved. You don't need to be in the PayPal partner program for this.

How to get the NetSuite account meta-data from the NetSuite API?

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".

How can I access public API Information without Login?

I'm trying to access public information from API's without actually having users grant access to the API in my mobile Application. Is this actually possible, or are the Oauth permissions for any sort of access to an API?
For example, I want my application to be able to pull a list of nearby restaurants for my application without asking the user if Yelp can access the application. Since the user just wants nearby food information, the request for restaurants isn't user specific, and the user shouldn't actually have to login.
Another example is if I want Eventbrite to simply give me a list of upcoming events. Is there a way to get this list without having a user authenticate Eventbrite within my application itsself?
You can call an API endpoint with your own token (between your Eventbrite account and your application key), and if the data is public (even if it's 'owned' by a different Eventbrite account) we'll return the data.
For example, if you want a list of events across our Event Directory (Event Search endpoint: http://developer.eventbrite.com/docs/event-search/) you can call this method with your own OAuth token (you can grab your OAuth token here: http://eventbrite.com/myaccount/apps).
Hope that helps!