@@ -12,7 +12,9 @@ Using this library developers can access all of the special App endpoints as wel
12
12
To connect you need to pass the app id and the location of your app's private key.
13
13
14
14
``` python
15
- gha = GithubConsensusApp(app_id, path_to_private_key)
15
+ from github3apps import GithubApp
16
+
17
+ gha = GithubApp(app_id, path_to_private_key)
16
18
gha.set_user_agent(' MyApp' )
17
19
gha.get_app()
18
20
```
@@ -23,7 +25,9 @@ gha.get_app()
23
25
This returns the list of installations IDs available to your application.
24
26
25
27
``` python
26
- gha = GithubConsensusApp(app_id, path_to_private_key)
28
+ from github3apps import GithubApp
29
+
30
+ gha = GithubApp(app_id, path_to_private_key)
27
31
installation_ids = gha.get_installations()
28
32
```
29
33
@@ -33,7 +37,9 @@ installation_ids = gha.get_installations()
33
37
This returns the list of repositories available to your specific installation.
34
38
35
39
``` python
36
- gha = GithubConsensusApp(app_id, path_to_private_key)
40
+ from github3apps import GithubApp
41
+
42
+ gha = GithubApp(app_id, path_to_private_key)
37
43
38
44
installation = gha.get_installation(installation_id)
39
45
installation.get_repositories()
@@ -45,7 +51,9 @@ installation.get_repositories()
45
51
This returns a [ github3.py] ( https://github.com/sigmavirus24/github3.py ) client already authenticated against a specific installation.
46
52
47
53
``` python
48
- gha = GithubConsensusApp(app_id, path_to_private_key)
54
+ from github3apps import GithubApp
55
+
56
+ gha = GithubApp(app_id, path_to_private_key)
49
57
installation = gha.get_installation(installation_id)
50
58
gh = installation.get_github3_client()
51
59
```
0 commit comments