You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:param kwargs: keyword arguments to set settings that can be use to call pastebin.com API function
25
25
:type kwargs: dict
26
-
:returns: class -- PastebinPython
26
+
:returns: class -- :class:`pastebin_python.pastebin.PastebinPython`
27
27
28
28
===========
29
29
Example:
@@ -41,7 +41,7 @@ def __init__(self, **kwargs):
41
41
42
42
@property
43
43
defapi_user_key(self):
44
-
"""This is where the api_user_key is stored after calling :func:`createAPIUserKey`
44
+
"""This is where the api_user_key is stored after calling :meth:`pastebin_python.pastebin.createAPIUserKey`
45
45
46
46
:returns: str -- the api_user_key
47
47
@@ -50,7 +50,7 @@ def api_user_key(self):
50
50
51
51
@property
52
52
defapi_user_paste_list(self):
53
-
"""This where the list of pastes of the current user is stored after calling :func:`listUserPastes`
53
+
"""This where the list of pastes of the current user is stored after calling :meth:`pastebin_python.pastebin.listUserPastes`
54
54
55
55
:returns: list -- current user pastes list
56
56
@@ -71,7 +71,7 @@ def createPaste(self, api_paste_code, api_paste_name='', api_paste_format='', ap
71
71
:param api_paste_expire_date: this sets the expiration date of your paste, values to be assign can be found at :mod:`pastebin_python.pastebin_constants`
"""Almost the same as :func:`createPaste` ,the only difference is that the value of *api_paste_code* came from the file you opened
97
+
"""Almost the same as :meth:`pastebin_python.pastebin.createPaste` ,the only difference is that the value of *api_paste_code* came from the file you opened
:param api_paste_expire_date: this sets the expiration date of your paste, values to be assign can be found at :mod:`pastebin_python.pastebin_constants`
"""This will parse the xml string returned by the the function :func:`listUserPastes` or :func:`listTrendingPastes`
249
249
250
-
:param xmlString: this is the returned xml string from :func:`listUserPastes` or :func:`listTrendingPastes`
250
+
:param xmlString: this is the returned xml string from :meth:`pastebin_python.pastebin.listUserPastes` or :meth:`pastebin_python.pastebin.listTrendingPastes`
251
251
:type xmlString: str
252
252
:returns: list -- pastes info in a dictionary format
"""This will delete pastes created by certain users
304
304
305
-
:param api_paste_key: this is the paste key that which you can get in the :func:`listUserPastes` function
305
+
:param api_paste_key: this is the paste key that which you can get in the :meth:`pastebin_python.pastebin.listUserPastes` function
306
306
:type api_paste_key: str
307
307
:returns: bool -- True if the deletion is successfull else False
308
308
309
309
.. note::
310
310
311
-
Before calling this function, you need to call the :func:`createAPIUserKey` first then call the :func:`listUserPastes`
311
+
Before calling this function, you need to call the :meth:`pastebin_python.pastebin.createAPIUserKey` first then call the :meth:`pastebin_python.pastebin.listUserPastes`
312
312
313
313
"""
314
314
postData= {
@@ -333,11 +333,11 @@ def getUserInfos(self):
333
333
"""You can obtain a users personal info and certain settings by calling this function
334
334
335
335
:returns: list -- user info in a dictionary format
Copy file name to clipboardExpand all lines: pastebin_python/pastebin_constants.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
"""
2
-
.. module:: pastebin_constants
3
-
:synopsis: This module contains the constants that can be used in the :func:`pastebin_python.pastebin.PastebinPython.__processPost` , :func:`pastebin_python.pastebin.PastebinPython.createPaste` and :func:`pastebin_python.pastebin.PastebinPython.createPasteFromFile`
2
+
.. module:: pastebin_python.pastebin_constants
3
+
:synopsis: This module contains the constants that can be used in the :meth:`pastebin_python.pastebin.PastebinPython.__processPost` , :meth:`pastebin_python.pastebin.PastebinPython.createPaste` and :meth:`pastebin_python.pastebin.PastebinPython.createPasteFromFile`
Copy file name to clipboardExpand all lines: pastebin_python/pastebin_formats.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
"""
2
-
.. module:: pastebin_formats
3
-
:synopsis: This module contains constants that can be used in :func:`pastebin_python.pastebin.PastebinPython.createPaste` or :func:`pastebin_python.pastebin.PastebinPython.createPasteFromFile` in *api_paste_format* parameter
2
+
.. module:: pastebin_python.pastebin_formats
3
+
:synopsis: This module contains constants that can be used in :meth:`pastebin_python.pastebin.PastebinPython.createPaste` or :meth:`pastebin_python.pastebin.PastebinPython.createPasteFromFile` in *api_paste_format* parameter
0 commit comments