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
The code base has been extensively documented with examples of how to use each method. Please refer to the [documentation](http://rubydoc.info/github/peter-murach/github/master/frames) under the `Github::Client` class name.
124
123
124
+
Alternatively, you can find out which methods are supported by an api by calling `actions` on a class or instance. For example, in order to find out available endpoints for `Github::Client::Repos::Contents` api call `actions` method:
The code base is modular. This means that you can work specifically with a given part of GitHub API. If you want to only work with activity starring API do the following:
@@ -313,7 +319,26 @@ Github.new do |c|
313
319
end
314
320
```
315
321
322
+
### 2.3 SSL
323
+
324
+
By default requests over SSL are set to OpenSSL::SSL::VERIFY_PEER. However, you can turn off peer verification by
325
+
326
+
```ruby
327
+
github =Github.newssl: { verify:false }
328
+
```
316
329
330
+
If your client fails to find CA certs, you can pass other SSL options to specify exactly how the information is sourced
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. This will allow the client to verify the github.com ssl certificate as authentic.
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.
430
-
This will allow the client to verify the github.com ssl certificate as authentic.
431
-
432
-
## 6 API
433
-
434
-
Main API methods are grouped into the following classes that can be instantiated on their own
0 commit comments