Blink

Blink

    Get Blink user profile

    Gets the Blink user profile, based on a valid authorization code that was previously obtained in a web application using login with blink.

    HTTP MethodURL
    POSTbaseUrl/oauth/access_token/

    Request body

    • Requires client_id and client_secret from a valid OAuth application config.
    • Requires a valid login token.
        {
            "client_id" : // OAuth client id  
            "client_secret" : // OAuth client secret
            "code" : // login token
            "grant_type": // OPTIONAL accepts only "authorization_code" 
            "redirect_uri": // OPTIONAL one of your OAuth application's redirect URIs
        }
    

    Success Response

    HTTP code: 200

        {
            "user" : {
                "email" : // Blink user's email address
            } 
        }
    

    Error Response

        {
            "code" : // Error code  
            "message": // Error message
        }
    
    codemessage
    1901Invalid grant type
    1902Invalid grant code
    1904Invalid client credentials
    • Request body
    • Success Response
    • Error Response
    Blink
    Docs
    Getting StartedPublic API
    Integration
    Donation
    Blink
    Copyright © 2021 Blink Ledger Systems Inc. All rights reserved