You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To understand what each scope means refer to [documentation](http://developer.github.com/v3/oauth/#scopes)
@@ -324,6 +325,9 @@ If your client fails to find CA certs you can pass other SSL options to specify
324
325
}
325
326
```
326
327
328
+
For instance, download CA root certificates from Mozilla [cacert](http://curl.haxx.se/ca/cacert.pem) and point ca_file at your certificate bundle location.
329
+
This will allow the client to verify the github.com ssl certificate as authentic.
330
+
327
331
## MIME Types
328
332
329
333
Issues, PullRequests and few other API leverage custom mime types which are <tt>:json</tt>, <tt>:blob</tt>, <tt>:raw</tt>, <tt>:text</tt>, <tt>:html</tt>, <tt>:full</tt>. By default <tt>:raw</tt> is used.
@@ -400,11 +404,12 @@ end
400
404
One can also navigate straight to specific page by:
401
405
402
406
```ruby
403
-
res.page 5# Requests given page if it exists, nil otherwise
404
-
res.first_page
405
-
res.prev_page
406
-
res.next_page
407
-
res.last_page
407
+
res.count_pages # Number of pages
408
+
res.page 5# Requests given page if it exists, nil otherwise
409
+
res.first_page # Get first page
410
+
res.next_page # Get next page
411
+
res.prev_page # Get previous page
412
+
res.last_page # Get last page
408
413
```
409
414
410
415
## Error Handling
@@ -431,10 +436,12 @@ Each response comes packaged with methods allowing for inspection of HTTP start
431
436
432
437
```ruby
433
438
res =Github::Repos.new.branches 'peter-murach', 'github'
0 commit comments