Skip to content

Instantly share code, notes, and snippets.

@mediamagnet
Created February 19, 2018 19:03
Show Gist options
  • Save mediamagnet/debc557b07999dcb69d38980a0f8d3ce to your computer and use it in GitHub Desktop.
Save mediamagnet/debc557b07999dcb69d38980a0f8d3ce to your computer and use it in GitHub Desktop.
#!/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