Pixela API Document

API Document for Pixela ( https://pixe.la/ ) .

API Index

User

POST /v1/users - Create a user

PUT /v1/users/<username> - Update a user

DELETE /v1/users/<username> - Delete a user


Channel

POST /v1/users/<username>/channels - Create a channel settings

GET /v1/users/<username>/channels - Get channels

PUT /v1/users/<username>/channels/<channelID> - Update a channel settings

DELETE /v1/users/<username>/channels/<channelID> - Delete a channel


Graph

POST /v1/users/<username>/graphs - Create a graph

GET /v1/users/<username>/graphs - Get graph definitions

GET /v1/users/<username>/graphs/<graphID> - Get a graph SVG

PUT /v1/users/<username>/graphs/<graphID> - Update a graph

DELETE /v1/users/<username>/graphs/<graphID> - Delete a graph

GET /v1/users/<username>/graphs/<graphID>.html - View a graph detail

GET /v1/users/<username>/graphs.html - View graph list by detail

GET /v1/users/<username>/graphs/<graphID>/pixels - Get graph pixels list

GET /v1/users/<username>/graphs/<graphID>/stats - Get a graph stats


Pixel

POST /v1/users/<username>/graphs/<graphID> - Post a pixel

GET /v1/users/<username>/graphs/<graphID>/<yyyyMMdd> - Get a pixel

PUT /v1/users/<username>/graphs/<graphID>/<yyyyMMdd> - Update a pixel

PUT /v1/users/<username>/graphs/<graphID>/increment - Increment a pixel

PUT /v1/users/<username>/graphs/<graphID>/decrement - Decrement a pixel

DELETE /v1/users/<username>/graphs/<graphID>/<yyyyMMdd> - Delete a pixel


Notification

POST /v1/users/<username>/graphs/<graphID>/notifications - Create a notification rule

GET /v1/users/<username>/graphs/<graphID>/notifications - Get notifications

PUT /v1/users/<username>/graphs/<graphID>/notifications/<notificationID> - Update a notification settings

DELETE /v1/users/<username>/graphs/<graphID>/notifications/<notificationID> - Delete a notification


Webhook

POST /v1/users/<username>/webhooks - Create a webhook

GET /v1/users/<username>/webhooks - Get webhooks

POST /v1/users/<username>/webhooks/<webhookHash> - Invoke a webhook

DELETE /v1/users/<username>/webhooks/<webhookHash> - Delete a webhook