Skip to content
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Conversation

jlord
Copy link

@jlord jlord commented Jun 12, 2013

I was venturing into the wonderful world of the GitHub API tonight and was sent to this part of the docs through an error message I got about a User Agent. I found the docs a little confusing. From what I learned, the docs could be more clear by specifying that the user agent must be a header (it currently says string) and written like user-agent since it is a header and has to be hyphenated (it currently says User Agent). I also thought an example would be helpful as well. This PR makes little changes to this effect.

screen shot 2013-06-11 at 11 05 51 pm

Also, it says "All API requests MUST include" but then says "If you are hitting the API without authentication." If it MUST include something then how can you possibly be hitting the API without it? Maybe I'm just too much a n00b in the world of APIs but I thought it was worth mentioning.

Woo! 🐈

All API requests MUST include a valid User Agent string. Requests with no User Agent
string will be rejected. If you are hitting the API without authentication, we ask that
All API requests MUST include a valid `User-Agent` header. Requests with no `User-Agent`
header will be rejected. If you are hitting the API without authentication, we ask that
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd nuke the without authentication part. User-Agent became a requirement a while back.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The user agent has nothing to do with authentication. That sentence is trying to ask anonymous spiders to set some descriptive user agent. For instance, search engines always identify themselves by name, instead of going by some vague default in whatever HTTP library they're using.

@jlord
Copy link
Author

jlord commented Jun 12, 2013

Okie - how about:

screen shot 2013-06-12 at 11 36 12 am

@technoweenie
Copy link
Contributor

👍

jlord pushed a commit that referenced this pull request Jun 12, 2013
@jlord jlord merged commit 0e851a8 into master Jun 12, 2013
@jasonrudolph
Copy link
Contributor

@jasonrudolph jasonrudolph deleted the add-user-agent-example branch June 12, 2013 18:48
jlord pushed a commit that referenced this pull request Jun 12, 2013
hubot pushed a commit that referenced this pull request Nov 24, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy