Skip to content
This repository was archived by the owner on Jun 2, 2023. It is now read-only.
This repository was archived by the owner on Jun 2, 2023. It is now read-only.

Onboard calls for nest and wink should use the same parameter structure #17

@busadave13

Description

@busadave13

Nest onboarder should use the same parameter structure as wink for the onboard parameters. Wink takes are array of objects while nest takes and object and string. Would be nice if there was some consistance

NEST
var params = 'client_id=' + authInfo[0].client_id;
params = params + '&code=' + authInfo[1];
params = params + '&client_secret=' + authInfo[0].client_secret;
params = params + '&grant_type=authorization_code';

WINK
ar postData = JSON.stringify({
'client_id': authInfo[1].client_id,
'client_secret': authInfo[1].client_secret,
'username': authInfo[0].username,
'password': authInfo[0].password,
'grant_type': 'password'
});

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