Skip to content

Commit 16dcffb

Browse files
committed
readme corrections
1 parent 3ee5af9 commit 16dcffb

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ Using this library developers can access all of the special App endpoints as wel
1212
To connect you need to pass the app id and the location of your app's private key.
1313

1414
```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)
1618
gha.set_user_agent('MyApp')
1719
gha.get_app()
1820
```
@@ -23,7 +25,9 @@ gha.get_app()
2325
This returns the list of installations IDs available to your application.
2426

2527
```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)
2731
installation_ids = gha.get_installations()
2832
```
2933

@@ -33,7 +37,9 @@ installation_ids = gha.get_installations()
3337
This returns the list of repositories available to your specific installation.
3438

3539
```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)
3743

3844
installation = gha.get_installation(installation_id)
3945
installation.get_repositories()
@@ -45,7 +51,9 @@ installation.get_repositories()
4551
This returns a [github3.py](https://github.com/sigmavirus24/github3.py) client already authenticated against a specific installation.
4652

4753
```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)
4957
installation = gha.get_installation(installation_id)
5058
gh = installation.get_github3_client()
5159
```

0 commit comments

Comments
 (0)