I'm trying to obtain the user's username aka http://foursquare.com/USERNAME via the API. There seems to be no support for it in the User JSON response nor can I seem to find it anywhere else in the docu. Shouldn't it be available via a User request???
Foursquare identifies users by their user ID which is a number. Their default profile location is http://foursquare.com/user/USER_ID. You can also access a user's profile via http://foursquare.com/TWITTER_USERNAME if the user has connected their Twitter handle.
So given a user who has connected their twitter handle "FOOBAR" to foursquare, you can access their profile at http://foursquare.com/FOOBAR.
Related
I need this option to remember the device ID used when registering a new user and save it in the database, and later when logging in, if another device is used, the user needs to send a verification email to be able to log in to their account.
This is a similar feature as google uses for its Gmail.
If your application works on web than you can fetch the user-agent information and the user IP address and create a hash details using his combination. If the hash is different in the 2nd attempt of sign-in / login than you can do you desired action
I am trying to automatically verify that a user is a particular Spotify artist (or at least on the artist's team). The problem is that an artist and a user are different. Spotify's authentication API deals with user accounts. However, user accounts are used to access Spotify for Artists and are internally verified by Spotify.
Therefore, it looks like I just need some way to check whether the user can access the artist. Is there any API or other way to check that a particular authenticated user is tied to a Spotify for Artists account?
I have been using DocuSign SOAP Based API calls to create and send envelopes and am using legacy authentication method in which I can specify email address and password of the DocuSign user who is going to create envelopes.
One our client have multiple DocuSign account with the same user. When I setup an authentication header thru the SOAP based API call, I do not have a way to specify which account I am making API calls against.
How do I make sure that I am making API calls against the specific account?
You have two ways of accomplishing this.
1) You can make a getlogin call to retrieve a list of the logins associated with an account and use the default.
OR
2) Instead of supplying the email address for the user you can supply the API UserName in the login headers, which is a unique number for that user. This can be retrieved from the API and Keys or Users section if they're using the New DocuSign Experience, or through the user Permission section if still using Classic.
While the ApiUserName or email address is usually supplied in the authentication header, the ID for the account is in the XML body for the call. the combination of apiUserName and AccountId should be sufficient in picking a specific user, even if they have the same email address associated with multiple accounts.
I want to build Instagram client for Ubuntu. I already figured out how to get data like user feed through access token through Instagram API. But I can't figure out how to get user news (e.g. someone liked your photo, mentioned you in comment etc.), I guess user need to be logged on to watch his news (via http://instagram.com/api/v1/news/inbox/).
So, the question: is there any way to get user feed through API, or through access token? I don't want to request user password in my application, all I got is access token.
This endpoint (v1/news/inbox/) is not supported by official Instagram API. By the way; you can't access the data.
I provision a user through the docusign api and the new user is not active yet (status=ActivationSent). Now for whatever reason I want to deprovision this user. The deprovision API requires a userId. My question is finding this userId efficiently.
I tried getting the user information using the endpoint
/accounts/{accountId}/users?email={emailAddress} but it returned a 400 with error code USER_LACKS_MEMBERSHIP.
I saw I can get a list of all users for an account using the end point /accounts/{accountId}/users and then finding the user and userId I'm interested in. Is there a more efficient way to get the userId in this scenario than querying all users?
Also is there a corresponding SOAP call to get all of the users for an account? I can't find it in the SOAP documentation.
To the best of my knowledge, the method that you describe (retrieving a list of all users and then iterating through the list to find the user you want to deprovision) is the only way to find/retrieve the User Id of a user that has userStatus = "Activation Sent". Unfortunately (as you've discovered), the /accounts/{accountId}/users?email={emailAddress} is only successful for 'active' users.
That being said though -- when you provision a User via the REST API (POST /accounts/{accountId}/users), a successful Response should contain the userId for the new user. Perhaps your application can store the userId that's received in the response each time a new user is provisioned, and then you can subsequently use that userId value to deprovision a user if/when necessary.
I'm not very familiar with the SOAP API, but I don't see a "get all Users" operation in the DocuSign SOAP API Guide. I'd expect that type of operation to be part of the "Account Management Service API", but I'm not seeing it there.