question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Client-ID Required for Kraken API calls

See original GitHub issue

Challenge Name

https://www.freecodecamp.com/challenges/use-the-twitchtv-json-api

Issue Description

JSONP calls to the channels API result in a bad request. This is due to an update to the Twitchtv API which now requires a client id, which means creating an account and registering your application with the service. Details can be read from the official developer blog:

https://blog.twitch.tv/client-id-required-for-kraken-api-calls-afbb8e95f843#.pm46cq40d

I confirmed this by console logging the response object from the channels API on my application and comparing it with the example provided by Free Code Camp (see screenshots).

Browser Information

N/A

Your Code




Screenshot

screen shot 2016-09-14 at 10 44 41 pm

screen shot 2016-09-14 at 10 45 05 pm

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:36 (19 by maintainers)

github_iconTop GitHub Comments

3reactions
zelitecommented, Oct 9, 2016

My opinion is that there should be one static JSON version for those who do not want to create a twitch account and leave instructions about the requirement for a Client ID, for those who don’t mind creating a twitch account.

The privacy of the Client ID is a non-issue, as I wrote here ( https://github.com/FreeCodeCamp/FreeCodeCamp/issues/11015#issuecomment-250957089 )

from here: https://github.com/justintv/Twitch-API/blob/master/authentication.md

Client IDs are public and can be shared (e.g. embedded in the source of a web page),

I think everyone is making a big fuss over this project, since it is very easy to create a client ID and there is no problem in having it public. The only issue I see is the objection of some people in creating an account in a third party website (which is also an issue for using the OpenWeather API and there making the API key public is actually sensitive).

3reactions
dhcodescommented, Sep 15, 2016

Confirmed, at least to the extent that my (previously-working) Twitch app is now yielding Bad Request as well. Should we update the instructions on this challenge to have campers create a Twitch Developer account and read the blog post about setting a Client ID?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Client-ID required for Kraken API calls - Twitch Blog
TL;DR: On Monday, August 8th, 2016, we're going to really-for-real require the Client-ID header on all of your API requests to Kraken.
Read more >
Add ClientID to a javascript GET request on Twitch Kraken API
I have JavaScript code that used to work fine, but now the twitch kraken API uses a Client ID parameter... I have my...
Read more >
Kraken REST API Documentation
This document details use of Kraken's REST API for our spot exchange. ... endpoints (trading, funding, user data) which require requests to be...
Read more >
OAuth 2.0 Client Credentials (2-legged flow) - KrakenD
Through the OAuth 2.0 Client Credentials Grant, KrakenD can do a 2-legged OAuth2 flow, which means that the gateway requests to your ...
Read more >
Create and Manage an OAuth App - GitKraken Client ...
The access token you receive in response will be in a JSON document. This token can be used to make API calls on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found