Retired
Instagram API (retired)
Loading description...
Algorithms
JSON
Formats
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Your
loadData
is mutable.Using outside API as kata material is not a good idea as they can change in any time, and the API might be available anymore in the future.
Failing on the message "The response code should be 200". I'm new to using APIs with JavaScript, so I have no idea what I should do about that. It's not mentioned in the instructions, not mentioned on the linked Instagram developer page, and the documentation online seems to require the use of a check like httpRequest.status === 200, but I'm not sure how that fits into the structure of the callback function that I am writing here. Any suggestions?
In the intervening two months, I have gained some valuable experience at CodePen in using APIs with JavaScript. But I still have no idea why I'm getting the error message "The response code should be 200" in this Codewars kata. How does my code pass like 12 times and then generate an error??? Any nudge in the right direction here would be greatly appreciated.
Way too easy to pass without actually calling any API.
I think it's fixed now. I had issues re-publishing the kata.
Your current solution wouldn't pass now :)
My favourite thing about this kata is seeing which hashtag people decided to use for their solution :)
Does this require registering an Instagram account in order to obtain a valid access_token or client_id? Without it, I receive the following error:
technically you don't, because you don't actually have to call the method loadData to pass the test.
Good point, the call to loadData is not tested.
This comment has been hidden.