Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the structure for API Response #6

Open
ChakshuGautam opened this issue Aug 5, 2021 · 0 comments
Open

Update the structure for API Response #6

ChakshuGautam opened this issue Aug 5, 2021 · 0 comments

Comments

@ChakshuGautam
Copy link
Contributor

The new structure is

{
    "id": "api.userSegment.get",
    "ver": "1.0",
    "ts": "2021-08-05T05:39:43.742Z",
    "params": {
        "resmsgid": "895a98f0-f5af-11eb-8ca8-85b1d40797df",
        "msgid": null,
        "status": "failed",
        "err": "UNAUTHORIZED_REQUEST",
        "errmsg": "The user is not the owner of the asset."
    },
    "responseCode": "CLIENT_ERROR",
    "result": {}
}

The previous structure was directly giving the result field.

This would require an update in the BotService parser. Also, all requests will result in an either a correct response or an error. That should additionally be handled using the 200 code and parsing the params

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant