mirror of
https://github.com/kennethreitz/python-github3.git
synced 2026-06-05 23:10:17 +00:00
login
This commit is contained in:
+1
-1
@@ -36,4 +36,4 @@ __version__ = '0.0.1'
|
|||||||
|
|
||||||
# Module namespace.
|
# Module namespace.
|
||||||
|
|
||||||
from .core import from_pass
|
from .core import login
|
||||||
+2
-1
@@ -7,8 +7,9 @@ heroku.api
|
|||||||
This module provides the basic API interface for Heroku.
|
This module provides the basic API interface for Heroku.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import json
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
from .compat import json
|
|
||||||
from .helpers import is_collection
|
from .helpers import is_collection
|
||||||
from .structures import KeyedListResource
|
from .structures import KeyedListResource
|
||||||
from .models import *
|
from .models import *
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@ This module provides the base entrypoint for github3.
|
|||||||
|
|
||||||
from .api import Github
|
from .api import Github
|
||||||
|
|
||||||
def from_key(username, password):
|
def login(username, password):
|
||||||
"""Returns an authenticated Github instance, via API Key."""
|
"""Returns an authenticated Github instance, via API Key."""
|
||||||
|
|
||||||
gh = Github()
|
gh = Github()
|
||||||
|
|||||||
Reference in New Issue
Block a user