Skip to content
Permalink
Browse files

Fix documentation

  • Loading branch information...
nlaz committed Mar 1, 2019
1 parent 3837363 commit 12bf00d48bc87a2c0c0e6da75c59abf7d7236f2c
Showing with 4 additions and 4 deletions.
  1. +4 −4 app/templates/tutorial/index.html
@@ -19,8 +19,8 @@ <h5 class="py-1 m-0">Retrieving your starred projects</h5>
<p>You can retrieve your starred projects on GitHub using the <code>/user/starred</code> endpoint. Within this starter project, you can also use the <code>services/github.py</code> module, which makes it easier to make an authenticated request.<p>
<p>A GET request to the <code>/user/starred</code> endpoint using the <code>github.py</code> module would follow this format:</p>
<pre class="bg-light rounded"><code>
github = GitHub(access_token=session['access_token'])
results = github.get('/user/starred')
const github = new GitHub({ access_token: access_token });
const results = await github.get('/user/starred');
</code></pre>
<p class="mt-4">As a result, you will see your starred repositories below:</p>
{{#if tutorial1}}
@@ -43,8 +43,8 @@ <h5 class="py-1 m-0">Searching GitHub</h5>
<p>The endpoint for searching GitHub projects is located at <code>/search/repositories</code>. You can use this endpoint to find projects on GitHub. Within this starter project, you also can use the <code>services/github.py</code> module, which makes it easier to make an authenticated request.
<p>A GET request to the <code>/search/repositories</code> endpoint using the <code>github.py</code> module would follow this format:</p>
<pre class="bg-light rounded"><code>
github = GitHub(access_token=session['access_token'])
results = github.get('/search/repositories')
const github = new GitHub({ access_token: access_token });
const results = await github.get('/search/repositories');
</code></pre>
<p class="mt-4">As a result, you should be able to search for GitHub projects below:</p>
<div class="text-center mx-auto mb-3">

0 comments on commit 12bf00d

Please sign in to comment.
You can’t perform that action at this time.