Skip to content

Not able to find the access token  #8

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"
}]
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions