Skip to content

Instantly share code, notes, and snippets.

View vaibhavsethia's full-sized avatar
🎯
Focusing

IrateLeaf98 vaibhavsethia

🎯
Focusing
View GitHub Profile
@vaibhavsethia
vaibhavsethia / GetGames.js
Created January 11, 2021 13:46
Get Games endpoint for Twitch API using Ant Design for frontend components
import React, { Component } from 'react'
import { Input, Row, Col, Button } from 'antd';
import TwitchAPI from './TwitchAPI';
export class GetGames extends Component {
constructor(props) {
super(props)
this.state = {
SearchField : '',
@vaibhavsethia
vaibhavsethia / TwitchAPI.js
Created January 11, 2021 13:39
Twitch API for medium article
import axios from 'axios'
let TwitchAPI = axios.create({
headers: {
'Client-ID': '<Your Client ID>',
'Authorization': 'Bearer <Your Access token>',
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'GET,PUT,POST,DELETE,PATCH,OPTIONS'
}
})