{"_id":"5852d07215df0b3b00461303","category":{"_id":"56afd523bc304a0d00ace1df","pages":["56afd736b34d210d003d9ba9","56afd977bc304a0d00ace1e3","56b0e385135ec20d00baf9a9"],"project":"56acd71213ac890d001c3c7a","__v":3,"version":"56acd71213ac890d001c3c7d","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-02-01T21:58:59.198Z","from_sync":false,"order":4,"slug":"channel-resource","title":"Channel Resource"},"parentDoc":null,"project":"56acd71213ac890d001c3c7a","version":{"_id":"56acd71213ac890d001c3c7d","project":"56acd71213ac890d001c3c7a","__v":15,"createdAt":"2016-01-30T15:30:26.928Z","releaseDate":"2016-01-30T15:30:26.928Z","categories":["56acd71313ac890d001c3c7e","56acd8f113ac890d001c3c81","56acd8f95ac4060d0027865e","56acd93a13ac890d001c3c82","56ad20660ab3c00d00ce3347","56ad356a2a7860170013f714","56ad47eb0ab3c00d00ce334f","56afd523bc304a0d00ace1df","56b29a019621f20d00efb37e","56b657e11bc6970d009feee7","5845cc3c39950c1b002afe77","5845cde163c11b250037967e","5846efd45d064323007b17b4","588604da4674e32300efd160","588627882393d50f00f1322c"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"githubsync":"","user":"5845cbcc9f6fbb1b0043087c","__v":1,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-12-15T17:18:42.522Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[{"status":200,"name":"","code":"{\n  \"result\": {\n    \"status\": 1,\n    \"message\": \"GameWisp channel found.\"\n  },\n  \"data\": {\n    \"display_name\": \"oreoxplays\",\n    \"name\": \"oreoxplays\",\n    \"links\": {\n      \"uri\": \"/channel/oreoxplays\"\n    }\n  }\n}","language":"json"}]},"settings":"","examples":{"codes":[{"language":"javascript","code":"var params = {\n\ttwitch_name: \"TWITCH_NAME\"\n};\n\n$.getJSON('https://api.gamewisp.com/pub/v1/channel/channel-by-twitch-details/', params, function(json) {\n    console.log(json);\n});"},{"language":"php","code":"<?php\n\n$client = new GuzzleHttp\\Client();\n\ntry {\n\n  $response = $client->get('https://api.gamewisp.com/pub/v1/channel/information', [\n    'query' => [\n      'twitch_name'  => 'TWITCH_NAME'\n    ]\n  ]);\n\n  $result = $response->json();\n\n} catch (Exception $e) {\n\n  //error\n  $result = $e->getResponse()->json();\n\n}"},{"code":"https://api.gamewisp.com/pub/v1/channel/channel-by-twitch-details?twitch_name=TWITCH_NAME","name":"Sample URL","language":"text"}]},"method":"get","auth":"never","params":[{"_id":"56b141baf48f270d00e0dd86","ref":"","in":"query","required":true,"desc":"ID for a Twitch user. Only required if `twitch_name` is not present","default":"","type":"int","name":"twitch_id"},{"_id":"56b147656d004b17008066ad","ref":"","in":"query","required":true,"desc":"Twitch username. Only required if `twitch_id` is not present","default":"","type":"string","name":"twitch_name"}],"url":"/channel/channel-by-twitch-details"},"isReference":false,"order":3,"body":"This endpoint can be used to check if a Twitch user has a GameWisp channel.","excerpt":"Get GameWisp channel information from Twitch name or ID","slug":"channelchannel-by-twitch-details","type":"endpoint","title":"/channel/channel-by-twitch-details"}

get/channel/channel-by-twitch-details

Get GameWisp channel information from Twitch name or ID

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Query Params

twitch_id:
required
integer
ID for a Twitch user. Only required if `twitch_name` is not present
twitch_name:
required
string
Twitch username. Only required if `twitch_id` is not present

Examples


Result Format


Documentation

This endpoint can be used to check if a Twitch user has a GameWisp channel.