Reputation: 1832
So this is a really stupid problem, I'm trying to follow this tutorial: https://gist.github.com/caspyin/2288960
but it just doesn't DO anything when I type:
curl https://api.github.com/users/caspyin
No error (if curl isn't in the directory i'm in, I do get an error) but it doesn't noticably return anything.
curl https://api.github.com/zen
Also doesn't return the little zen saying.
These apis work fine in the browser but I want to be able to run more complex post scripts so I can create issues... and I'm just struggling to get started here. What am I doing wrong?
Upvotes: 0
Views: 1556
Reputation: 1832
The problem ended up being that they've changed and now require authentication in almost every instance. I solved this problem by requesting a private github key to use for authentication purposes and then played with the headers until I got what I needed.
Upvotes: 1
Reputation: 843
try:
curl https://api.github.com/zen -k --proxy https://your_proxy_host:443 --proxy-user your_username:your_password
Upvotes: 0