oauth2

OAuth 2.0 - Retrieve a new authorization code

This service will only work for partners having signed a contract with Withings (Withings Mobile SDK or Withings Cellular). To generate a new authorization code for standard end-user accounts, your user will have to authorize your application to the Web Authorization Flow again.<br/><br/>This service allows you to retrieve a new authorization code in the event that the refresh token is invalid for a user belonging to your namespace.

post https://wbsapi.withings.net/v2/oauth2

Request

  • Base URL
    https://wbsapi.withings.net
  • Auth
    none declared

Query parameters

actionstring required

Must take the string value recoverauthorizationcode.

client_idstring required

Your Client ID.

noncestring required

A random token used to prevent replay attacks (Cf. Signature v2 - Getnonce).

signaturestring required

Hash of params (Cf. Signature hash protocol).

useridinteger required

User's identifier

Response

(Click to unfold)

statusinteger

Response status. See <a href='#tag/response_status'>Status</a> section for details.

Example response

{
  "body": {
    "user": {
      "code": "490ed603fe9bd2ce10027bdba0c932069cd27085"
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.