XTV Api

Channels

http://xtv.nu:3000/api/channels/

Get the channel's where the user has acces to

getSpotlight

http://xtv.nu:3000/api/channels/getSpotlight

Get the channels who are currently in the spotlight.

Expects

None

Parameters

None

Returns JSON

{
// Try
}

User

http://xtv.nu:3000/api/user/

Retrieve current loged in user's information.

getUser

http://xtv.nu:3000/api/user/getUser

GET Retrieve the user information, see the Return values for the returned data.

Expects

  • oAuth 2.0 authorization

Parameters

None

Returns JSON

{
        _id,
        username,
        email,
        information: {
                firstname,
                surename,
                lastname,
        },
        ban,
        ban_reason,
        active,
        activated_on,
        creation_date,
 }

getChannels

http://xtv.nu:3000/api/user/getChannels

Get the channel's where the user has acces to

Expects

  • oAuth authorization

Parameters

None

Returns JSON

{

}

oAuth

http://xtv.nu:3000/api/oauth/

The oAuth endpoints.
 

Token

http://xtv.nu:3000/api/oauth/token

Refresh tokens for oAuth

}