Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

PHP

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 90,705 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,623 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,623 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 90,705 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 :-)