Skip to content
anjanms edited this page Feb 12, 2016 · 4 revisions

Objects


mediaObject

{
    id: '5607f956b0774d0300e4d448',
    name: '[FRAME] Tartarus ft. Ibeabronyrapper - F3nning - Feather',
    description: null,
    images: [Object],
    type: 'youtube',
    fkid: 'TzBWxIpz7rM',
    streamUrl: null,
    fileUrl: null,
    songLength: 295000,
    songBitrate: null,
    songMeta: null,
    created: 1443363158051
}

Note: A mediaObject may be undefined if the data received from Dubtrack was malformed or incomplete.


roomObject

{
    id: '55ff9491196f170300cc0bf5',
    user: '55ff94021564a403003f4f8c',
    name: 'anjanms',
    description: ':eggplant: :eggplant: :eggplant: :eggplant:',
    roomUrl: 'anjanms',
    realTimeChannel: 'dubtrackfm-anjanms',
    status: 1,
    roomType: 'room',
    isPublic: false,
    lang: null,
    musicType: null,
    password: null,
    allowedDjs: 0,
    maxLengthSong: 0,
    displayQueue: false,
    background: {
        public_id: 'rljlljkz6qq3evgylok1',
        version: 1447086136,
        width: 1945,
        height: 900,
        format: 'png',
        resource_type: 'image',
        tags: [],
        bytes: 580686,
        type: 'upload',
        etag: '62e059562ab0ce4c386e3deae33f2635',
        url: 'http://res.cloudinary.com/hhberclba/image/upload/v1447086136/rljlljkz6qq3evgylok1.png',
        secure_url: 'https://res.cloudinary.com/hhberclba/image/upload/v1447086136/rljlljkz6qq3evgylok1.png'
    },
    created: 1442813073547,
    updated: 1442813073547,
    roomEmbed: 'https://www.youtube.com/embed/CKBV7vLirv8?rel=0&autoplay=1',
    activeUsers: 1,
    lockQueue: false,
    welcomeMessage: ':horse:'
}

userObject

{
    id: '5609c755970e920300a44e88',
    role: '52d1ce33c38a06510c000001',
    created: 1443481428717,
    username: 'fimbot',
    profileImage: {
        public_id: 'aec4vko219vt7yo5scu6',
        version: 1451415796,
        width: 200,
        height: 200,
        format: 'gif',
        resource_type: 'image',
        tags: [],
        pages: 8,
        bytes: 9103,
        type: 'upload',
        etag: 'c7e9d07c524b9617af9657e298e9a9c0',
        url: 'http://res.cloudinary.com/hhberclba/image/upload/v1451415796/aec4vko219vt7yo5scu6.gif',
        secure_url: 'https://res.cloudinary.com/hhberclba/image/upload/v1451415796/aec4vko219vt7yo5scu6.gif'
    },
    updated: 1445420367741,
    skippedCount: 0,
    playedCount: 0,
    songsInQueue: 0,
    active: true,
    dubs: 40,
    banned: false,
    bannedTime: 1444201288377,
    bannedUntil: 0,
    kickCount: 24,
    kickTime: 1444203623980,
    muted: false,
    order: 99999,
    dub: undefined
}

Note: A userObject may be undefined as a result of a state synchronization issue.


requestCallback

function(code, body) {}
Arguments

code number The response code of the request

body object The parsed response

Clone this wiki locally