AuthenticateHubUser

Automatically log in a user by appending a token provided by this API method call.

Request

GET https://api.uberflip.com/?Version=0.1&Method=AuthenticateHubUser&APIKey=xxxxxxx&Signature=xxxxxx&HubId=12345&ResponseType=XML
URL Parameters Description
Version The version of the API to call (0.1).
Method The method being called (AuthenticateHubUser).
APIKey Your account’s API key.
Signature Your account’s API signature.
UserId (required for master/reseller accounts) The account identifier of the account to call the method on.
HubID The identifier of the Hub to log the user into.
ResponseType (optional) The response format (XML or JSON). Defaults to JSON.

Examples

Sample response:

<Response>
    <Token>Yjk5YmU4Nzc3OGM4ZDljZTIyN</Token>
</Response>

Example Usage

Using the supplied token, you can bypass the login screen for your Password-Protected Hub and give valid users instant access to your content. Simply append ?token=Yjk5YmU4Nzc3OGM4ZDljZTIyN to the end of a Hub link, Hub Stream link or Hub Item link.

http://hub.publishingdomain.com/h/?token=Yjk5YmU4Nzc3OGM4ZDljZTIyN

Once the token is accessed, it is removed and cannot be used again. This is to ensure that if the token-appended link is shared it cannot be abused.

This is most commonly used to avoid double log in whereby the user has already been authenticated on your website by your own login system.