Git Product home page Git Product logo

ruby-twitch-api's People

Contributors

alexwayfer avatar colemanja91 avatar depfu[bot] avatar eein avatar mauricew avatar otzy007 avatar wwboynton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ruby-twitch-api's Issues

Helix 2020 updates

New Endpoints

  • Channel Points
    • Create Reward
    • Get Reward
    • Update Reward
    • Delete Reward
    • Get Redemption
    • Update Redemption
  • Search
    • Search Categories
    • Search Channels
  • Stream
    • Get Stream Key
    • Start Commercial
  • User
    • Create User Follows
    • Delete User Follows
  • Bits Get Cheermotes

Error getting followers

Hello,

using client_id

client.get_streams works

but when i try get followers list i get

Twitch::ApiError: The server returned error 400

Using secret token i get error 401 in both (maybe i dont get the access token properly)

Thanks for help! ;)

Make a new release

There were many changes, including client headers and authentication, so let's make a new release (0.5.0, I guess).

Adding `as_json` serializer to models?

I'm doing a bit of data wrangling and have a local method to convert a few model types into JSON objects; but I'm wondering if this might be helpful for others. Any interest in me putting up a PR to add some serialization? Or would you prefer to leave that up to the individual users?

Helix endpoints 1H2019

  • Stream tags
  • Subscriptions
    • Broadcaster's subscribers
    • User's subscriptions (was this removed at some point?)
    • Subscription events
  • Moderation
    • Banned users
    • Ban events
    • Moderator list
    • Moderator events
    • AutoMod message check
  • Extensions
    • All user extensions
    • Active user extensions
    • Update user extensions

Faraday Version Error

Im kind of a newbie to rails, but I am trying to use omniauth-twitch with this gem, and long story short, oauth2 requires faraday > 0.13, and this gem requires faraday at 0.13. I don't know if there is an easy fix, just thought I would let you know :)

Helix updates Q12021

These will probably make it to release after next.

  • New Endpoints
    • Get Channel Editors
    • Delete Videos
    • Get User Block List
    • Block User
    • Unblock User
  • Add login fields to classes

Enable changing Faraday Adapter

Hey there,

I think it would be really helpful to be able to change the Faraday adapter. Willing to make a PR but don't know exactly how you'd want it implemented. Care to discuss?

accessing user data after initializing

Hello,

I'm trying to create a user for my website based on an oauth login from Twitch. I've already retrieved my access token, saved to access_token. I'd like to be able to to save user data as profile_data. This is what I have:

client = Twitch::Client.new(:access_token => access_token)

user = client.get_users.data
puts user

profile_data = { :profile_image_url => user.profile_image_url, :display_name => user.display_name, :email => user.email, :id => user.id }

user is returning as an object, rather than a hash of data from Twitch. Can I still access the necessary data from this object? I'm new to web dev so apologies if this seems like a foolish question.

Following the "Client (application) flow" in `README.md` returns `unknown keyword: :client_secret`

The "Client (application) flow" section of README.md states:

Client (application) flow

This is default flow (:token_type).

twitch_client = Twitch::Client.new(
  client_id: client_id,
  client_secret: client_secret,

  ## this is default
  # token_type: :application,

  ## this can be required by some Twitch end-points
  # scopes: scopes,

  ## if you already have one
  # access_token: access_token
)

However, this code...

require "twitch-api"

CLIENT_ID = "hackme"
CLIENT_SECRET = "hackme"

twitch_client = Twitch::Client.new(
  client_id: CLIENT_ID,
  client_secret: CLIENT_SECRET
)

...returns:

/home/max/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/twitch-api-0.4.0/lib/twitch/client.rb:32:in `initialize': unknown keyword: :client_secret (ArgumentError)
	from ./check:9:in `new'
	from ./check:9:in `<main>'

Is there something I'm doing wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.