Guide to getting started with uCoz API
All requests to the API require authorization via the Bearer token. To obtain an access token, you need to create a key on your uCoz website in the control panel according to instructions.
Server field and enter the Bearer token in the Authorize field.
yoursite/admin), then in the top menu open the Site β uAPI section and enable the API for the required modules.
The application is created on the uAPI registration page.
After creating the application, you must obtain a Consumer key, Consumer secret, OAuth token and OAuth token secret to work with uAPI. To do this, you need to run three queries:
POST to http://uapi.ucoz.com/accounts/OAuthGetRequestToken
Parameters:
oauth_consumer_keyoauth_signature_methodoauth_signatureoauth_timestampoauth_nonceoauth_callbackIn response you will receive temporary oauth_token and oauth_token_secret.
GET to http://uapi.ucoz.com/accounts/OAuthAuthorizeToken
Parameters: oauth_token, oauth_token_secret.
At this step, the rights to use your data in the application are confirmed. In response you will receive temporary oauth_token and oauth_verifier.
POST to http://uapi.ucoz.com/accounts/OAuthGetAccessToken
Parameters:
oauth_consumer_keyoauth_tokenoauth_signature_methodoauth_signatureoauth_timestampoauth_nonceoauth_verifierThis is the last step - here you will get the final (working) Consumer key, Consumer secret, OAuth token and OAuth token secret. All received data will be saved in your profile on the page uAPI panel.