Method: J1App::GithubHelpers#github_request
- Defined in:
- lib/j1_app/j1_auth_manager/helpers_github.rb
#github_request(path) ⇒ Object
Send a V3 API GET request to path and parse the response body
path - the path on api.github.com to hit
Returns a parsed JSON response
Examples
github_request("/user")
# => { 'login' => 'atmos', ... }
50 51 52 |
# File 'lib/j1_app/j1_auth_manager/helpers_github.rb', line 50 def github_request(path) github_user.github_request(path) end |