The Geoloqi service was acquired by Esri in 2012, and was shut down in 2015.
Please visit developers.arcgis.com for information on Esri services that replace the Geoloqi API.
Contents |
https://api.geoloqi.com/1/user/create_anon
Create a new anonymous account. Returns an OAuth access token on success. This method is for the mobile clients to bypass signup and start using the app immediately.
You must provide the API Key (Client ID) for this method, but the API Secret is not required. This means you do not need to include your client secret in your mobile apps.
If sending the client_id in post parameters, you can just omit the client_secret parameter. If you are using HTTP Basic Auth, you can use an empty string for the password.
POST
The request must be authenticated with the application's client ID and secret. You can do this by either passing them in post parameters or by using HTTP Basic auth.
Alternatively, you can pass the authentication in via HTTP Basic auth if you are using a library that supports it. Use the client ID as the username and leave the password blank. See API/Authentication for more information.
You can automatically subscribe users to a layer or add them to a group when they are created. To do this, use the "layer_ids" and "group_tokens" parameters when creating the user.
On successful account creation, the response is identical to a call to oauth/token and will contain an access token and refresh token. The mobile client should make sure not to lose the refresh token, since the user has no password at this point and will have no way to log in via the mobile app until creating a password on their computer.
{ "access_token": "RsT5OjbzRn430zqMAZFh+QaLgVx+Q3Ia", "expires_in": 3600, "scope": null, "refresh_token": "e1qoXgfno1YTKc7aAZvIk2RRua48lXIV" }
You will get a descriptive error message if there was a problem creating the account. See Error Codes for more information.
{ "error": "access_denied", "error_description": "This client does not have permission to create anonymous accounts" }
The Geoloqi service was acquired by Esri in 2012, and was shut down in 2015.
Please visit developers.arcgis.com for information on Esri services that replace the Geoloqi API.