Created
February 19, 2018 19:03
-
-
Save mediamagnet/debc557b07999dcb69d38980a0f8d3ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'configatron' | |
require 'rest-client' | |
require 'twitch/chat' | |
require_relative 'config.rb' | |
require 'json' | |
follows = RestClient.get "https://api.twitch.tv/helix/users/follows?to_id=#{configatron.chanid}", {:'Client-ID' => configatron.clientid} | |
follows1 = JSON.parse(follows).fetch('data').take(1).zip | |
puts follows1 | |
puts follows1.class |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment