'2016/11'에 해당되는 글 2건

  1. 2016.11.14 twitch api 연동
  2. 2016.11.11 홈페이지 스크린 룰러
https://www.twitch.tv/settings/connections
OAuth 연동
개발자 커스텀 애플리케이션 - 

애플리케이션 등록
jQuery
$.ajax({
type: 'GET',
url: 'https://api.twitch.tv/kraken/channels/twitch',
headers: {
'Client-ID': 'axjhfp777tflhy0yjb5sftsil'
},
success: function(data) {
console.log(data);
}
});
cURL
curl -i -H 'Accept: application/vnd.twitchtv.v3+json'\
-H 'Client-ID: axjhfp777tflhy0yjb5sftsil'\
'https://api.twitch.tv/kraken/channels/twitch'
PHP
<?php
$channelsApi = 'https://api.twitch.tv/kraken/channels/';
$channelName = 'twitch';
$clientId = 'axjhfp777tflhy0yjb5sftsil';
$ch = curl_init();

curl_setopt_array($ch, array(
CURLOPT_HTTPHEADER => array(
'Client-ID: ' . $clientId
),
CURLOPT_RETURNTRANSFER => true,
CURLOPT_URL => $channelsApi . $channelName
));

$response = curl_exec($ch);
curl_close($ch);
?>






Posted by [czar]
,
<style type="text/css">
<!--
body {
background:url(http://www.prowebdesign.ro/screen-ruler/screeen-ruler.png) top left no-repeat;}
-->
</style>

홈페이지 화면에 룰러 자 표시해서 사이즈 확인용

Posted by [czar]
,