forked from piotrmurach/github
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient.rb
More file actions
72 lines (54 loc) · 1.54 KB
/
client.rb
File metadata and controls
72 lines (54 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# encoding: utf-8
module Github
class Client < API
require_all 'github_api/client',
'activity',
'authorizations',
'emojis',
'gists',
'gitignore',
'git_data',
'issues',
'markdown',
'meta',
'orgs',
'pull_requests',
'repos',
'say',
'scopes',
'search',
'users'
# Serving up the ‘social’ in Social Coding™, the Activity APIs
# provide access to notifications, subscriptions, and timelines.
namespace :activity
namespace :emojis
namespace :gists
namespace :gitignore
alias :git_ignore :gitignore
# The Git Database API gives you access to read and write raw Git objects
# to your Git database on GitHub and to list and update your references
# (branch heads and tags).
namespace :git_data
alias :git :git_data
namespace :issues
namespace :markdown
namespace :meta
# An API for users to manage their own tokens. You can only access your own
# tokens, and only through Basic Authentication.
namespace :authorizations
alias :oauth :authorizations
namespace :orgs
alias :organizations :orgs
namespace :pull_requests
alias :pulls :pull_requests
namespace :repos
alias :repositories :repos
namespace :say
alias :octocat :say
namespace :scopes
namespace :search
# Many of the resources on the users API provide a shortcut for getting
# information about the currently authenticated user.
namespace :users
end # Client
end # Github