Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: new conceptual guide to introduce the lib #426

Merged
merged 2 commits into from
Jan 7, 2019
Merged

Conversation

jgravois
Copy link
Contributor

@jgravois jgravois commented Jan 3, 2019

ISSUES CLOSED: #318

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 5502c13 on guide/request into c1c9dd6 on master.

@coveralls
Copy link

coveralls commented Jan 3, 2019

Coverage Status

Coverage remained the same at 100.0% when pulling f7b7310 on guide/request into c1c9dd6 on master.

Copy link
Member

@tomwayson tomwayson left a comment

Choose a reason for hiding this comment

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

good idea! minor suggestions.

getUser(`jgravois`)
.then(response) // { firstName: "john", description: "open source geodev" ... }
```

Copy link
Member

Choose a reason for hiding this comment

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

Maybe add "vs:" here, or comments to the top of each code block - something to indicate that the first block is rest-js and the second is vanilla JS.

// construct the url yourself and don't forget to tack on f=json
const url = "https://www.arcgis.com/sharing/rest/community/users/jgravois?f=json";

var xhr = new XMLHttpRequest();
Copy link
Member

Choose a reason for hiding this comment

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

ha! it's kind of cheating to compare to XMLHttpRequest() instead of fetch(), but I'm impressed that you pulled that out of the old archives!

* `200` responses that contain an error are trapped for
* the generic `f=json` parameter is appended

And we haven't even begun to discuss [authentication](../node/).
Copy link
Member

Choose a reason for hiding this comment

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

seems like ../browser-authentication/ is a better link here than ../node/.

@jgravois jgravois merged commit 51a1b66 into master Jan 7, 2019
@jgravois jgravois deleted the guide/request branch January 7, 2019 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants