require 'json'
require 'net/http'
APIURL = 'https://api.twitch.tv/kraken/channels/buffalowave/follows?limit=5&offset=0&direction=desc'
parsed = JSON.parse(Net::HTTP.get(URI.parse(APIURL)))
followerarray = parsed['follows']
latestfollowerhash = followerarray.at(1)
@latestfollower = latestfollowerhash['user']['display_name']
puts "#{@latestfollower} is the latest follower"
So I’m calling the API but I am getting different results with the script and with my browsers…
It seams to be like the bot gets the results offset by like 1 follow.
Any ideas on how to fix this?