class xdk.oauth1_auth.OAuth1
पैरामीटर
str
str
str
str or None
डिफ़ॉल्ट:"None"
str or None
डिफ़ॉल्ट:"None"
__init__
पैरामीटर
str
API कुंजी (Consumer Key)।
str
API सीक्रेट (Consumer Secret)।
str
OAuth फ़्लो के लिए callback URL।
str or None
डिफ़ॉल्ट:"None"
एक्सेस टोकन (यदि पहले से प्राप्त किया गया हो)।
str or None
डिफ़ॉल्ट:"None"
एक्सेस टोकन Secret (यदि पहले से प्राप्त किया गया हो)।
build_request_header
पैरामीटर
str
HTTP मेथड (GET, POST आदि)।
str
अनुरोध URL (इसमें क्वेरी पैरामीटर शामिल हो सकते हैं)।
str
डिफ़ॉल्ट:"''"
अनुरोध बॉडी (form-encoded स्ट्रिंग या खाली)।
रिटर्न
str
get_access_token
पैरामीटर
str
कॉलबैक या PIN से प्राप्त OAuth verifier।
रिटर्न
OAuth1AccessToken
OAuth1 फ़्लो के लिए प्राधिकरण URL प्राप्त करें।
पैरामीटर
bool
डिफ़ॉल्ट:"False"
क्या “Log in with X” फ़्लो का उपयोग करना है या नहीं।
रिटर्न
str
get_request_token
रिटर्न
OAuth1RequestToken
start_oauth_flow
पैरामीटर
bool
डिफ़ॉल्ट:"False"
क्या “Log in with X” फ़्लो का उपयोग किया जाए।
रिटर्न
str
class xdk.oauth1_auth.OAuth1AccessToken
पैरामीटर
str
str
__init__
पैरामीटर
str
एक्सेस टोकन।
str
एक्सेस टोकन सीक्रेट।
class xdk.oauth1_auth.OAuth1RequestToken
पैरामीटर
str
str
__init__
पैरामीटर
str
OAuth टोकन।
str
OAuth टोकन का सीक्रेट।