Skip to content

Instantly share code, notes, and snippets.

@Nazmul56
Created April 5, 2020 08:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nazmul56/e68488afeb8d2c8e28a7ffbb6470c4fa to your computer and use it in GitHub Desktop.
Save Nazmul56/e68488afeb8d2c8e28a7ffbb6470c4fa to your computer and use it in GitHub Desktop.

Enter Api

POST /api/v1/auth/enter

Parameters

None

Request Body

{
    "fbAuthorizationCode": "FB_AUTHORIZATION_CODE"
}

Header

set-cookie →ducomm.sid=s%3AMYzfK73DvimY-U7G4fDJqQQUCjLpjBL-.tRleHGnFImj28qXtCu9BKKFg0hzTj%2BJZuICbHpfnElA; Path=/; Expires=Sat, 20 Jul 2019 12:35:21 GMT; HttpOnly

Responses

Many API endpoints return the JSON representation of the resources created or edited. However, if an invalid request is submitted, or some other error occurs, Ducomm returns a JSON response in the following format:

{
    "status": "200",
    "data": {
        "loggedIn": true,
        "firstLogin": false,
        "username": "USER_NAME"
    }
}

The status attribute contains a message commonly used to indicate errors or, in the case of deleting a resource, success that the resource was properly deleted.

The data att

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