points, and trophy management system.
register user.
{
'token': 'secret kyphrase'
}
- 400
{ 'message': 'USERNAME was already registered' }
- 201
{ 'message': 'user \'USERNAME\' was created' }
update the user token.
X-USER-TOKEN
[required]- user token.
{
'newToken': 'secret new token'
}
- 400
{ 'message': 'token did not match' }
,
- 404
{ 'message': 'user \'USERNAME\' did not found' }
- 200
{ 'message': 'success' }
X-USER-TOKEN
[required]- user token.
- 400
{ 'message': 'token did not match' }
,
- 404
{ 'message': 'user \'USERNAME\' did not found' }
- 200
{ 'message': 'success' }
X-USER-TOKEN
[required]- user token.
{
'repository': 'USER/REPO',
'action': 'commit', // commit, push, pullrequest, issue, comments, others
'ref_url': 'https://....', // url of action.
}
- 400
{ 'message': 'token did not match' }
,
- 404
{ 'message': 'user \'USERNAME\' did not found' }
- 200
{ 'message': 'success' }
invoke the webhook.