on master help sign in
security fixes
commit7ead3eb59b3ce5c0d3047330cf75fb0366c9bedc authorjoshuareagan <joshuareagan@gmail.com> dateThu 4 Oct 2018, 18:02 (8 years ago) parent843d0b3
1 file changed+13−3
docs/tutorials/gall/security-driver.umd+13−3
docs/tutorials/gall/security-driver.umd+13−3
@@ -33,14 +33,24 @@ cases you'll need to make very few changes to one of these
3333models.
3434
3535Still, it's worth seeing one or two built from the ground up.
36−Here, we'll build a connector for the Github API v3. The
36+Here, we'll build a connector for the Github API v3. (It's already in `/sec/com/github.hoon` if you want to see it.)
37+
38+The
3739simplest way to interact with the Github API is to just fetch
38−https://api.github.com from the dojo:
40+https://api.github.com from the dojo. First, run this:
41+
42+```
43+> |init-auth-basic /com/github
44+```
45+
46+Input your Github username and password as directed. Next:
3947
4048```
4149~your-urbit:dojo> +https://api.github.com
4250```
4351
52+> Note: the current version of this API is outdated, so you'll get a 403 message at this point. We need to update this so you can follow along with the examples. We're sorry!
53+
4454Github exposes a few endpoints to the general web, and the root
4555endpoint is one of them. This gives you a textual representation
4656of a JSON object that contains a bunch of urls to other parts of
@@ -91,7 +101,7 @@ you're logged in as.
91101You can similarly POST:
92102
93103```
94−~your-urbit:dojo> +https://api.github.com/gists &json _(cork poja need) '{"files":{"file1.txt":{"content":"can\'t stop the signal"}}}'
104+~your-urbit:dojo> +https://api.github.com/gists &json _(cork de-json:html need) '{"files":{"file1.txt":{"content":"can\'t stop the signal"}}}'
95105```
96106
97107This creates a gist, go to `https://gist.github.com/<username>` to