Confirmed users
927
edits
Tarek.ziade (talk | contribs) |
|||
Line 90: | Line 90: | ||
The server API | The server API are: | ||
'''GET''' '''https://''server''/new_channel''' | '''GET''' '''https://''server''/new_channel''' | ||
Line 149: | Line 149: | ||
to ''new_channel'' or timed out or already deleted. | to ''new_channel'' or timed out or already deleted. | ||
- 400: Bad or no client ID. The channel is deleted. | - 400: Bad or no client ID. The channel is deleted. | ||
- 403: the IP is blacklisted. | |||
'''POST''' '''https://''server''/''report'' ''' | |||
Reports a log to the server. The log is the body of the request. If the response contains a ''X-KeyEchange-Log'', its value is prep-ended to the log provided in the body. In other words, the header can be used for small logs, and the body for more info. The body size is limited to 2000 chars. | |||
Return codes: | |||
- 200: logged successfully | |||
- 403: the IP is blacklisted. | - 403: the IP is blacklisted. | ||