MCPcopy Create free account

hub / github.com/and3rson/nineapi / functions

Functions38 in github.com/and3rson/nineapi

↓ 4 callersMethod_request
Perform API request. :param method: HTTP method ('GET', 'POST' etc.) :param path: URL to retrieve (e.g. '/v2/post-list')
nineapi/client.py:55
↓ 4 callersMethodlog_in
Attempt to log in. :param username: User login. :param password: User password. :returns: True :rtype: bool
nineapi/client.py:133
↓ 2 callersMethodget_posts
Fetch posts. :param group: Posts category (defaults to 1) :param type_: Posts type (defaults to 'hot') :param count:
nineapi/client.py:160
↓ 1 callersMethod_validate_response
Validate the response status. :param response: JSON response dictionary. :returns: True :rtype: bool :raises
nineapi/client.py:114
↓ 1 callersFunctionget_timestamp
Generate timestamp in milliseconds.
nineapi/utils.py:22
↓ 1 callersMethodpost
Returns the associated :class:`Post`.
nineapi/client.py:376
↓ 1 callersMethodtest_log_in_good
(self)
tests.py:21
↓ 1 callersMethodtest_log_in_good
(self)
keyring_tests.py:18
Method__init__
Create API client instance. :param app_id: Application id (defaults to 'com.ninegag.android.app') :param log_level: Logging
nineapi/client.py:41
Method__init__
(self, client, props)
nineapi/client.py:245
Method__init__
(self, client, post, props)
nineapi/client.py:349
Method__str__
(self)
nineapi/client.py:338
Method__str__
(self)
nineapi/client.py:407
Methodchildren
Returns comments that are children for this one.
nineapi/client.py:383
Methodget_media_url
Returns image URL for Photo posts and .WEBM URL for Animated posts.
nineapi/client.py:284
Methodget_media_url
Returns media URL associated with this comment.
nineapi/client.py:396
Methodget_top_comments
Retrieves top comments for this post.
nineapi/client.py:300
Methodid
Post ID.
nineapi/client.py:250
Methodid
Comment ID.
nineapi/client.py:355
Methodis_authorized
Authorization status.
nineapi/client.py:225
Functionmd5
Hash string with MD5.
nineapi/utils.py:40
Methodprops
Dictionary with post data.
nineapi/client.py:278
Methodprops
Dictionary with comment data.
nineapi/client.py:390
Functionrandom_sha1
Generate random SHA1 string.
nineapi/utils.py:13
Functionrandom_uuid
Generate random UUID string.
nineapi/utils.py:6
Methodsearch_posts_by_tag
Fetch posts that match specific tag. :param query: Posts tag :param offset: Offset to start from. :param count: Coun
nineapi/client.py:194
MethodsetUp
(self)
tests.py:16
MethodsetUp
(self)
keyring_tests.py:13
Functionsign_request
Generate signature for HTTP request.
nineapi/utils.py:29
Methodtest_get_posts
(self)
tests.py:28
Methodtest_get_posts
(self)
keyring_tests.py:25
Methodtest_log_in_bad
(self)
tests.py:25
Methodtest_log_in_bad
(self)
keyring_tests.py:22
Methodtext
Comment text. Contains GIF url for GIT comments.
nineapi/client.py:362
Methodtitle
Post title.
nineapi/client.py:257
Methodtype
Post type.
nineapi/client.py:271
Methodurl
Post url.
nineapi/client.py:264
Methodurl
Comment url.
nineapi/client.py:369