Skip to content

A PHP class for the HabitRPG API. Will be expanded when more features become available in the API.

Notifications You must be signed in to change notification settings

biffhero/HabitRPG_PHP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

#HabitRPG_PHP A PHP class for the HabitRPG API

Bitdeli Badge

##Supported Functions

GET

  • /api/v1/user - (get user status)
    • x-api-user: uid
    • x-api-key: api token
  • /api/v1/user/tasks
    • x-api-user: uid
    • x-api-key: api token
    • type: habit | daily | todo | reward (optional)
  • /api/v1/user/task/:id - (get task)
    • x-api-user: uid
    • x-api-key: api token

POST

  • /api/v1/user/task - (create new task)
    • x-api-user: uid
    • x-api-key: api token
    • type: habit | daily | todo | reward (required)
    • text: This is an example title (required)
    • completed: false
    • value: 0
    • note: This is just a simple note

PUT

  • /api/v1/user/task/:id - (update task)
    • update text
    • x-api-user: uid
    • x-api-key: api token

##Future Functions

  • Whichever API methods become available to HabitRPG!

##Links

Link to HabitRPG. Link to it's awesome Kickstarter (which you should totally pledge to). Link to the [source] (https://github.com/lefnire/habitrpg).

About

A PHP class for the HabitRPG API. Will be expanded when more features become available in the API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published