Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wrist Warriors

Endpoints

POST /api/v1/user

  • Create the user.
  • requires payload: typeOfCreate: "fitbit".
  • requires payload: fitbitToken.

PUT /api/v1/user

  • update the fitbit token. Must have session authenticated.
  • requires payload: fitbitToken.

POST /login

  • returns the user.
  • requires payload: typeOfLogin "fitbit".
  • requires payload: fitbitToken.

POST /logout

  • destroys the session.
  • returns {message: "logged out"}

fitbitToken:

{
    token: {
        token: {
            access_token: String,
            expires_in: Number,
            refresh_token: String,
            scope: String,
            token_type: String,
            user_id: String,
            expires_at: String
        }
    }
}

The session is set upon creation and login... cannot logout yet. lol.

===========

you will need the config.js file otherwise this will not work at all.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages