Skip to content

Not able to find the access token  #8

@ankitkumar333111

Description

@ankitkumar333111
  if ("body" in event) {
        // Process JSON for events coming from API Gateway
        var body = JSON.parse(event.body);
        var token = event.headers.Authorization.split(" ")[1]; // Bearer token for oauth
    } else {
        // Event triggered by Lambda (specifically for ReportState)
        var token = event.token;
    }

and Receiving Action Line this,
{
"requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf",
"inputs": [{
"intent": "action.devices.SYNC"
}]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions