Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

What's the correct curl command? I've tried lots of combos

Help! :)

I'm sure this is the right part of the documentation to look up. https://developer.github.com/v3/orgs/members/#members-list

Am I getting the correct member name i.e. thephpleague? Thanks :)

Jason Anders
Jason Anders
Treehouse Moderator 145,860 Points

Hey Jonathan,

Could you post the link to the quiz. I do remember this one giving me some issues, but I can't remember the answer. If I see the question, it may come to me.

:dizzy: :)

1 Answer

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Yeah, sometimes, I've found that it misses the link.

Anyways, this one threw me too. Maybe because I was thinking along the lines of actual PHP cURL coding, instead of a command line code, just because of where the challenge was in relation to the videos. I'm not sure.

But, this challenge actually relates back to the second video at about the 3:00 mark. The documentation link provides the info you need for that. Once I finally got all that figured...

The ah-ha! moment:

curl https://api.github.com/orgs/thephpleague/members

Hope it helps! :) :dizzy:

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,253 Points

Hi Jason,

I did look back through the video, back and forth through the screens to find the command I needed. What throws me is the GET, and the :orgs on the page. Using commands with those included, or one of them, or none. :p

GET /orgs/:org/members

So I get as far as

curl https://api.github.com/ ....  

And then the fun starts.

Anyway, I've just tried your command which worked. :D

I assume the GET in the documentation refers to the above text... curl https://api.github.com/ But I'm not sure how I;m supposed to connect :orgs with the rest of the command. I made educated guesses and got close but never exactly right.

Thanks :-)