Smart Series API how to get access token ?

LightwaveRF Community: Welcome Forums LightwaveRF Hackers Smart Series API how to get access token ?

This topic contains 0 replies, has 1 voice, and was last updated by  arikadiusz 6 days, 22 hours ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #56073
     arikadiusz says:

    arikadiusz
    Participant

    Hi,

    So I am trying to get my head around this. Do I understand correctly that to do anything with this API I need to first authenticate aka get access token ?
    If so how do I fill this example from their website to return access token ?

    https://lwtokens.docs.apiary.io/#reference/0/request-an-access-token-using-a-refresh-token/request-an-access-token-using-a-refresh-token?console=1

    + header:
    authorization: “basic TOKEN”
    + body:
    {
    grant_type: “refresh_token”,
    refresh_token: “REFRESH_TOKEN”
    }

    I have tried replacing TOKEN, REFRESH_TOKEN, refresh_token in different combinations (very frustrating how badly this is documented…)

    this is what I am keep getting in response :

    {
    “error”: “invalid_request”,
    “error_description”: “Missing grant type”
    }

    I have Bearer and Refresh Token from Linkplus Client site. What next ? please advise.

    A

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.