यह मॉड्यूल सुरक्षित प्राधिकरण फ़्लो के लिए OAuth1.0a प्रमाणीकरण की कार्यक्षमता प्रदान करता है। इसमें रिक्वेस्ट टोकन जनरेट करना, authorization URL जनरेट करना, एक्सेस टोकन का आदान-प्रदान, और OAuth1 signature जनरेट करना शामिल है।
class xdk.oauth1_auth.OAuth1
X API के लिए OAuth1 प्रमाणीकरण हैंडलर।
पैरामीटर
str
str
str
str or None
डिफ़ॉल्ट:"None"
str or None
डिफ़ॉल्ट:"None"
__init__
OAuth1 प्रमाणीकरण आरंभ करता है।
पैरामीटर
str
API कुंजी (Consumer Key)।
str
API सीक्रेट (Consumer Secret)।
str
OAuth फ़्लो के लिए callback URL।
str or None
डिफ़ॉल्ट:"None"
एक्सेस टोकन (यदि पहले से प्राप्त किया गया हो)।
str or None
डिफ़ॉल्ट:"None"
एक्सेस टोकन Secret (यदि पहले से प्राप्त किया गया हो)।
build_request_header
API अनुरोधों के लिए OAuth1 प्राधिकरण हेडर बनाएँ।
पैरामीटर
str
HTTP मेथड (GET, POST आदि)।
str
अनुरोध URL (इसमें क्वेरी पैरामीटर शामिल हो सकते हैं)।
str
डिफ़ॉल्ट:"''"
अनुरोध बॉडी (form-encoded स्ट्रिंग या खाली)।
रिटर्न
str
get_access_token
verifier के बदले एक्सेस टोकन प्राप्त करें।
पैरामीटर
str
कॉलबैक या PIN से प्राप्त OAuth verifier।
रिटर्न
OAuth1AccessToken
get_authorization_url
OAuth1 फ़्लो के लिए प्राधिकरण URL प्राप्त करें।
पैरामीटर
bool
डिफ़ॉल्ट:"False"
क्या “Log in with X” फ़्लो का उपयोग करना है या नहीं।
रिटर्न
str
get_request_token
OAuth1 फ़्लो शुरू करने के लिए रिक्वेस्ट टोकन प्राप्त करें।
:returns: oauth_token और oauth_token_secret सहित रिक्वेस्ट टोकन।
:rtype: OAuth1RequestToken
रिटर्न
OAuth1RequestToken
start_oauth_flow
OAuth1 फ़्लो शुरू करने के लिए सुविधाजनक विधि।
पैरामीटर
bool
डिफ़ॉल्ट:"False"
क्या “Log in with X” फ़्लो का उपयोग किया जाए।
रिटर्न
str
class xdk.oauth1_auth.OAuth1AccessToken
OAuth1 एक्सेस टोकन का रिस्पॉन्स।
पैरामीटर
str
str
__init__
OAuth1 एक्सेस टोकन को इनिशियलाइज़ करता है।
पैरामीटर
str
एक्सेस टोकन।
str
एक्सेस टोकन सीक्रेट।
class xdk.oauth1_auth.OAuth1RequestToken
OAuth1 रिक्वेस्ट टोकन का रिस्पॉन्स।
पैरामीटर
str
str
__init__
OAuth1 रिक्वेस्ट टोकन को प्रारंभ करता है।
पैरामीटर
str
OAuth टोकन।
str
OAuth टोकन का सीक्रेट।
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"X","colors":{"primary":"#0E0E0E","light":"#B0B0B0","dark":"#0E0E0E"},"logo":{"light":"https://mintcdn.com/generaltranslation/p-tsc5qa00w8y5M4/logo/light.svg?fit=max\u0026auto=format\u0026n=p-tsc5qa00w8y5M4\u0026q=85\u0026s=299a991122fb35a82f868bc62a8be1ae","dark":"https://mintcdn.com/generaltranslation/p-tsc5qa00w8y5M4/logo/dark.svg?fit=max\u0026auto=format\u0026n=p-tsc5qa00w8y5M4\u0026q=85\u0026s=06e5086f68ab588cc44787b665898b75"},"favicon":"/favicon.png","appearance":{"default":"dark","strict":true},"background":{"color":{"dark":"#050505"}},"navbar":{"links":[{"href":"https://developer.x.com/en/support","label":"Support"}],"primary":{"type":"button","label":"Developer Console","href":"https://developer.x.com/en/portal/petition/essential/basic-info"}},"footer":{"socials":{"x":"https://x.com/xdevelopers","github":"https://github.com/xdevplatform"},"links":[{"header":"Legal","items":[{"label":"Terms of Service","href":"https://x.com/en/tos"},{"label":"Privacy Policy","href":"https://x.com/en/privacy"},{"label":"Cookies","href":"https://help.x.com/en/rules-and-policies/x-cookies"},{"label":"Developer Terms","href":"https://docs.x.com/developer-terms"}]}]},"seo":{"metatags":{"canonical":"https://docs.x.com","og:site_name":"X Developer Platform","og:type":"website","og:locale":"en_US","twitter:card":"summary_large_image","twitter:site":"@xdevelopers","description":"Build, analyze, and innovate with X's real-time, global data and APIs. Access comprehensive API documentation, SDKs, tutorials, and developer tools.","author":"X Developer Platform","language":"en","robots":"index, follow","googlebot":"index, follow"},"indexing":"all"},"contextual":{"options":["copy","view",{"title":"Open in Grok","description":"Ask questions about this page","icon":"/logo/grok.svg","href":{"base":"https://grok.com","query":[{"key":"q","value":"Read from https://docs.x.com$path so I can ask questions about it."}]}}],"display":"header"},"styling":{"latex":true},"navigation":{"languages":[{"language":"en","href":"overview"},{"language":"es","href":"es/overview"},{"language":"fr","href":"fr/overview"},{"language":"hi","href":"hi/overview"},{"language":"ja","href":"ja/overview"},{"language":"ko","href":"ko/overview"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"generaltranslation","hasAudioNarration":false,"actualSubdomain":"generaltranslation","customDomains":[],"gitSource":{"type":"github","owner":"fernando-aviles","repo":"x-docs","deployBranch":"locadex/setup-1769989792329","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae92afb0a94bfe43457bdcb:success","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"en","tag":"API Reference","count":371},{"language":"es","tag":"Referencia de la API","count":371},{"language":"fr","tag":"Référence de l’API","count":371},{"language":"hi","tag":"API संदर्भ","count":371},{"language":"ja","tag":"APIリファレンス","count":371},{"language":"ko","tag":"API 참조 문서","count":371},{"language":"en","tag":"TypeScript SDK","count":315},{"language":"es","tag":"SDK de TypeScript","count":315},{"language":"fr","tag":"SDK TypeScript","count":315},{"language":"hi","tag":"TypeScript SDK","count":315},{"language":"ja","tag":"TypeScript SDK","count":315},{"language":"ko","tag":"TypeScript SDK","count":315},{"language":"en","tag":"X API","count":295},{"language":"es","tag":"X API","count":294},{"language":"fr","tag":"X API","count":294},{"language":"hi","tag":"X API","count":294},{"language":"ja","tag":"X API","count":294},{"language":"ko","tag":"X API","count":294},{"language":"en","tag":"Interfaces","count":284},{"language":"es","tag":"Interfaces","count":284},{"language":"fr","tag":"Interfaces","count":284},{"language":"hi","tag":"इंटरफेस","count":284},{"language":"ja","tag":"インターフェイス","count":284},{"language":"ko","tag":"인터페이스","count":284},{"language":"en","tag":"Misc","count":281},{"language":"es","tag":"Varios","count":281},{"language":"fr","tag":"Divers","count":281},{"language":"hi","tag":"विविध","count":281},{"language":"ja","tag":"その他","count":281},{"language":"ko","tag":"기타","count":281},{"language":"en","tag":"Posts","count":78},{"language":"es","tag":"Publicaciones","count":78},{"language":"fr","tag":"Publications","count":78},{"language":"hi","tag":"पोस्ट्स","count":78},{"language":"ja","tag":"投稿","count":78},{"language":"ko","tag":"포스트","count":78},{"language":"en","tag":"Guides","count":76},{"language":"es","tag":"Guías","count":76},{"language":"fr","tag":"Guides","count":76},{"language":"ja","tag":"ガイド","count":76},{"language":"ko","tag":"가이드","count":76},{"language":"en","tag":"Python SDK","count":67},{"language":"es","tag":"SDK de Python","count":67},{"language":"fr","tag":"SDK Python","count":67},{"language":"hi","tag":"Python SDK","count":67},{"language":"ja","tag":"Python SDK","count":67},{"language":"ko","tag":"Python SDK","count":67},{"language":"en","tag":"Fundamentals","count":56},{"language":"hi","tag":"मार्गदर्शिकाएँ","count":50},{"language":"es","tag":"Conceptos básicos","count":43},{"language":"ko","tag":"기본 개념","count":43},{"language":"en","tag":"Lists","count":40},{"language":"es","tag":"Listas","count":40},{"language":"fr","tag":"Listes","count":40},{"language":"hi","tag":"सूचियाँ","count":40},{"language":"ja","tag":"リスト","count":40},{"language":"ko","tag":"리스트","count":40},{"language":"hi","tag":"बुनियादी बातें","count":39},{"language":"fr","tag":"Accueil","count":37},{"language":"ja","tag":"ホーム","count":37}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"@font-face{font-family:\"GraphikWide\";src:url(\"https://mintlify-assets.b-cdn.net/x/GraphikWide-Semibold-Trial.woff\") format(\"woff\");font-weight:600}.font-branded,h1,h2,h3{font-family:\"GraphikWide\";letter-spacing:-1%}.form{padding:15px;width:100%;min-height:300px;overflow-y:auto}.rate-limit-table th{text-align:left}tr td[data-label=\"Endpoint\"] a{font-size:12px}tr td[data-label=\"Pro Limit\"],tr td[data-label=\"Basic Limit\"],tr td[data-label=\"Free Limit\"]{font-size:12px}td[data-label=\"Pro Limit\"] strong,td[data-label=\"Basic Limit\"] strong,td[data-label=\"Free Limit\"] strong{margin-bottom:8px;display:block}.text-hero{color:white;font-weight:600;font-size:3rem;margin:0}@media (max-width: 767px){.text-hero{font-size:2rem}}#assistant-entry span{font-size:0!important;line-height:0!important}#assistant-entry span::before{content:\"Ask Grok\";font-size:0.875rem;line-height:1.5rem}#assistant-entry svg{display:none!important}#assistant-entry::before{content:\"\";display:inline-block;width:18px;height:18px;background-image:url(\"data:image/svg+xml,%3Csvg fill='%23000000' fill-rule='evenodd' height='1em' style='flex:none;line-height:1' viewBox='0 0 24 24' width='1em' xmlns='http://www.w3.org/2000/svg'%3E%3Ctitle%3EGrok%3C/title%3E%3Cpath d='M9.27 15.29l7.978-5.897c.391-.29.95-.177 1.137.272.98 2.369.542 5.215-1.41 7.169-1.951 1.954-4.667 2.382-7.149 1.406l-2.711 1.257c3.889 2.661 8.611 2.003 11.562-.953 2.341-2.344 3.066-5.539 2.388-8.42l.006.007c-.983-4.232.242-5.924 2.75-9.383.06-.082.12-.164.179-.248l-3.301 3.305v-.01L9.267 15.292M7.623 16.723c-2.792-2.67-2.31-6.801.071-9.184 1.761-1.763 4.647-2.483 7.166-1.425l2.705-1.25a7.808 7.808 0 00-1.829-1A8.975 8.975 0 005.984 5.83c-2.533 2.536-3.33 6.436-1.962 9.764 1.022 2.487-.653 4.246-2.34 6.022-.599.63-1.199 1.259-1.682 1.925l7.62-6.815'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-size:contain;vertical-align:middle}.dark #assistant-entry::before{background-image:url(\"data:image/svg+xml,%3Csvg fill='%23ffffff' fill-rule='evenodd' height='1em' style='flex:none;line-height:1' viewBox='0 0 24 24' width='1em' xmlns='http://www.w3.org/2000/svg'%3E%3Ctitle%3EGrok%3C/title%3E%3Cpath d='M9.27 15.29l7.978-5.897c.391-.29.95-.177 1.137.272.98 2.369.542 5.215-1.41 7.169-1.951 1.954-4.667 2.382-7.149 1.406l-2.711 1.257c3.889 2.661 8.611 2.003 11.562-.953 2.341-2.344 3.066-5.539 2.388-8.42l.006.007c-.983-4.232.242-5.924 2.75-9.383.06-.082.12-.164.179-.248l-3.301 3.305v-.01L9.267 15.292M7.623 16.723c-2.792-2.67-2.31-6.801.071-9.184 1.761-1.763 4.647-2.483 7.166-1.425l2.705-1.25a7.808 7.808 0 00-1.829-1A8.975 8.975 0 005.984 5.83c-2.533 2.536-3.33 6.436-1.962 9.764 1.022 2.487-.653 4.246-2.34 6.022-.599.63-1.199 1.259-1.682 1.925l7.62-6.815'/%3E%3C/svg%3E\")}.chat-assistant-sheet-header span.font-semibold{font-size:0!important}.chat-assistant-sheet-header span.font-semibold::before{content:\"Grok\";font-size:0.875rem;font-weight:600}.chat-assistant-sheet-header svg.size-5.text-primary.dark\\:text-primary-light{display:none!important}.chat-assistant-sheet-header .flex.items-center.gap-2::before{content:\"\";display:inline-block;width:18px;height:18px;background-image:url(\"data:image/svg+xml,%3Csvg fill='%23000000' fill-rule='evenodd' height='1em' style='flex:none;line-height:1' viewBox='0 0 24 24' width='1em' xmlns='http://www.w3.org/2000/svg'%3E%3Ctitle%3EGrok%3C/title%3E%3Cpath d='M9.27 15.29l7.978-5.897c.391-.29.95-.177 1.137.272.98 2.369.542 5.215-1.41 7.169-1.951 1.954-4.667 2.382-7.149 1.406l-2.711 1.257c3.889 2.661 8.611 2.003 11.562-.953 2.341-2.344 3.066-5.539 2.388-8.42l.006.007c-.983-4.232.242-5.924 2.75-9.383.06-.082.12-.164.179-.248l-3.301 3.305v-.01L9.267 15.292M7.623 16.723c-2.792-2.67-2.31-6.801.071-9.184 1.761-1.763 4.647-2.483 7.166-1.425l2.705-1.25a7.808 7.808 0 00-1.829-1A8.975 8.975 0 005.984 5.83c-2.533 2.536-3.33 6.436-1.962 9.764 1.022 2.487-.653 4.246-2.34 6.022-.599.63-1.199 1.259-1.682 1.925l7.62-6.815'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-size:contain;vertical-align:middle}.dark .chat-assistant-sheet-header .flex.items-center.gap-2::before{background-image:url(\"data:image/svg+xml,%3Csvg fill='%23ffffff' fill-rule='evenodd' height='1em' style='flex:none;line-height:1' viewBox='0 0 24 24' width='1em' xmlns='http://www.w3.org/2000/svg'%3E%3Ctitle%3EGrok%3C/title%3E%3Cpath d='M9.27 15.29l7.978-5.897c.391-.29.95-.177 1.137.272.98 2.369.542 5.215-1.41 7.169-1.951 1.954-4.667 2.382-7.149 1.406l-2.711 1.257c3.889 2.661 8.611 2.003 11.562-.953 2.341-2.344 3.066-5.539 2.388-8.42l.006.007c-.983-4.232.242-5.924 2.75-9.383.06-.082.12-.164.179-.248l-3.301 3.305v-.01L9.267 15.292M7.623 16.723c-2.792-2.67-2.31-6.801.071-9.184 1.761-1.763 4.647-2.483 7.166-1.425l2.705-1.25a7.808 7.808 0 00-1.829-1A8.975 8.975 0 005.984 5.83c-2.533 2.536-3.33 6.436-1.962 9.764 1.022 2.487-.653 4.246-2.34 6.022-.599.63-1.199 1.259-1.682 1.925l7.62-6.815'/%3E%3C/svg%3E\")}[data-component-part=\"update-label\"]{background-color:white;color:black!important}#navbar>*:nth-child(2){max-width:none!important;margin-left:0!important;margin-right:0!important}#sidebar{left:0!important}#sidebar-content{padding-left:2rem}#injected-slider{max-width:400px}#cost-estimator-button{position:relative}#cost-estimator-dropdown{min-width:400px;box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)}#usage-slider{-webkit-appearance:none;appearance:none;height:6px;background:#e5e7eb;outline:none;border-radius:3px}.dark #usage-slider{background:rgba(255, 255, 255, 0.1)}#usage-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:16px;height:16px;background:white;border:2px solid #00BA7C;border-radius:50%;cursor:pointer}.dark #usage-slider::-webkit-slider-thumb{background:#0B0C0E}#usage-slider::-moz-range-thumb{width:16px;height:16px;background:white;border:2px solid #00BA7C;border-radius:50%;cursor:pointer}.dark #usage-slider::-moz-range-thumb{background:#0B0C0E}"}],"page":{"pagePath":"hi/xdks/python/reference/xdk.oauth1_auth","slug":"/hi/xdks/python/reference/xdk.oauth1_auth","pageMetadata":{"title":"oauth1_auth","sidebarTitle":"oauth1_auth","description":null,"href":"/hi/xdks/python/reference/xdk.oauth1_auth","hidden":true},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,..._provideComponents(),...props.components},{Heading,ParamField}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`यह मॉड्यूल सुरक्षित प्राधिकरण फ़्लो के लिए OAuth1.0a प्रमाणीकरण की कार्यक्षमता प्रदान करता है। इसमें रिक्वेस्ट टोकन जनरेट करना, authorization URL जनरेट करना, एक्सेस टोकन का आदान-प्रदान, और OAuth1 signature जनरेट करना शामिल है।`}),`\n`,_jsx(`div`,{id:`class-xdkoauth1_authoauth1`,children:_jsx(Heading,{level:`3`,id:`class-xdk-oauth1_auth-oauth1`,children:_jsx(_components.code,{children:`class xdk.oauth1_auth.OAuth1`})})}),`\n`,_jsx(_components.p,{children:`X API के लिए OAuth1 प्रमाणीकरण हैंडलर।`}),`\n`,_jsx(`div`,{id:`parameters`,children:_jsx(Heading,{level:`4`,id:`पैरामीटर`,children:`पैरामीटर`})}),`\n`,_jsx(ParamField,{path:`path.api_key`,type:`str`,id:`param-path-api-key`}),`\n`,_jsx(ParamField,{path:`path.api_secret`,type:`str`,id:`param-path-api-secret`}),`\n`,_jsx(ParamField,{path:`path.callback`,type:`str`,id:`param-path-callback`}),`\n`,_jsx(ParamField,{path:`path.access_token`,type:`str or None`,default:`None`,id:`param-path-access-token`}),`\n`,_jsx(ParamField,{path:`path.access_token_secret`,type:`str or None`,default:`None`,id:`param-path-access-token-secret`}),`\n`,_jsx(`div`,{id:`__init__`,children:_jsx(Heading,{level:`3`,id:`__init__`,children:_jsx(_components.code,{children:`__init__`})})}),`\n`,_jsx(_components.p,{children:`OAuth1 प्रमाणीकरण आरंभ करता है।`}),`\n`,_jsx(`div`,{id:`parameters`,children:_jsx(Heading,{level:`4`,id:`पैरामीटर-2`,children:`पैरामीटर`})}),`\n`,_jsx(ParamField,{path:`path.api_key`,type:`str`,id:`param-path-api-key-1`,children:_jsx(_components.p,{children:`API कुंजी (Consumer Key)।`})}),`\n`,_jsx(ParamField,{path:`path.api_secret`,type:`str`,id:`param-path-api-secret-1`,children:_jsx(_components.p,{children:`API सीक्रेट (Consumer Secret)।`})}),`\n`,_jsx(ParamField,{path:`path.callback`,type:`str`,id:`param-path-callback-1`,children:_jsx(_components.p,{children:`OAuth फ़्लो के लिए callback URL।`})}),`\n`,_jsx(ParamField,{path:`path.access_token`,type:`str or None`,default:`None`,id:`param-path-access-token-1`,children:_jsx(_components.p,{children:`एक्सेस टोकन (यदि पहले से प्राप्त किया गया हो)।`})}),`\n`,_jsx(ParamField,{path:`path.access_token_secret`,type:`str or None`,default:`None`,id:`param-path-access-token-secret-1`,children:_jsx(_components.p,{children:`एक्सेस टोकन Secret (यदि पहले से प्राप्त किया गया हो)।`})}),`\n`,_jsx(`div`,{id:`build_request_header`,children:_jsx(Heading,{level:`3`,id:`build_request_header`,children:_jsx(_components.code,{children:`build_request_header`})})}),`\n`,_jsx(_components.p,{children:`API अनुरोधों के लिए OAuth1 प्राधिकरण हेडर बनाएँ।`}),`\n`,_jsx(`div`,{id:`parameters`,children:_jsx(Heading,{level:`4`,id:`पैरामीटर-3`,children:`पैरामीटर`})}),`\n`,_jsx(ParamField,{path:`path.method`,type:`str`,id:`param-path-method`,children:_jsx(_components.p,{children:`HTTP मेथड (GET, POST आदि)।`})}),`\n`,_jsx(ParamField,{path:`path.url`,type:`str`,id:`param-path-url`,children:_jsx(_components.p,{children:`अनुरोध URL (इसमें क्वेरी पैरामीटर शामिल हो सकते हैं)।`})}),`\n`,_jsx(ParamField,{path:`body.body`,type:`str`,default:`''`,id:`param-body-body`,children:_jsx(_components.p,{children:`अनुरोध बॉडी (form-encoded स्ट्रिंग या खाली)।`})}),`\n`,_jsx(`div`,{id:`returns`,children:_jsx(Heading,{level:`4`,id:`रिटर्न`,children:`रिटर्न`})}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`str`})}),`\n`,_jsx(`div`,{id:`get_access_token`,children:_jsx(Heading,{level:`3`,id:`get_access_token`,children:_jsx(_components.code,{children:`get_access_token`})})}),`\n`,_jsx(_components.p,{children:`verifier के बदले एक्सेस टोकन प्राप्त करें।`}),`\n`,_jsx(`div`,{id:`parameters`,children:_jsx(Heading,{level:`4`,id:`पैरामीटर-4`,children:`पैरामीटर`})}),`\n`,_jsx(ParamField,{path:`path.verifier`,type:`str`,id:`param-path-verifier`,children:_jsx(_components.p,{children:`कॉलबैक या PIN से प्राप्त OAuth verifier।`})}),`\n`,_jsx(`div`,{id:`returns`,children:_jsx(Heading,{level:`4`,id:`रिटर्न-2`,children:`रिटर्न`})}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`OAuth1AccessToken`})}),`\n`,_jsx(`div`,{id:`get_authorization_url`,children:_jsx(Heading,{level:`3`,id:`get_authorization_url`,children:_jsx(_components.code,{children:`get_authorization_url`})})}),`\n`,_jsx(_components.p,{children:`OAuth1 फ़्लो के लिए प्राधिकरण URL प्राप्त करें।`}),`\n`,_jsx(`div`,{id:`parameters`,children:_jsx(Heading,{level:`4`,id:`पैरामीटर-5`,children:`पैरामीटर`})}),`\n`,_jsx(ParamField,{path:`path.login_with_x`,type:`bool`,default:`False`,id:`param-path-login-with-x`,children:_jsx(_components.p,{children:`क्या “Log in with X” फ़्लो का उपयोग करना है या नहीं।`})}),`\n`,_jsx(`div`,{id:`returns`,children:_jsx(Heading,{level:`4`,id:`रिटर्न-3`,children:`रिटर्न`})}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`str`})}),`\n`,_jsx(`div`,{id:`get_request_token`,children:_jsx(Heading,{level:`3`,id:`get_request_token`,children:_jsx(_components.code,{children:`get_request_token`})})}),`\n`,_jsx(_components.p,{children:`OAuth1 फ़्लो शुरू करने के लिए रिक्वेस्ट टोकन प्राप्त करें।\n:returns: oauth_token और oauth_token_secret सहित रिक्वेस्ट टोकन।\n:rtype: OAuth1RequestToken`}),`\n`,_jsx(`div`,{id:`returns`,children:_jsx(Heading,{level:`4`,id:`रिटर्न-4`,children:`रिटर्न`})}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`OAuth1RequestToken`})}),`\n`,_jsx(`div`,{id:`start_oauth_flow`,children:_jsx(Heading,{level:`3`,id:`start_oauth_flow`,children:_jsx(_components.code,{children:`start_oauth_flow`})})}),`\n`,_jsx(_components.p,{children:`OAuth1 फ़्लो शुरू करने के लिए सुविधाजनक विधि।`}),`\n`,_jsx(`div`,{id:`parameters`,children:_jsx(Heading,{level:`4`,id:`पैरामीटर-6`,children:`पैरामीटर`})}),`\n`,_jsx(ParamField,{path:`path.login_with_x`,type:`bool`,default:`False`,id:`param-path-login-with-x-1`,children:_jsx(_components.p,{children:`क्या “Log in with X” फ़्लो का उपयोग किया जाए।`})}),`\n`,_jsx(`div`,{id:`returns`,children:_jsx(Heading,{level:`4`,id:`रिटर्न-5`,children:`रिटर्न`})}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`str`})}),`\n`,_jsx(`div`,{id:`class-xdkoauth1_authoauth1accesstoken`,children:_jsx(Heading,{level:`3`,id:`class-xdk-oauth1_auth-oauth1accesstoken`,children:_jsx(_components.code,{children:`class xdk.oauth1_auth.OAuth1AccessToken`})})}),`\n`,_jsx(_components.p,{children:`OAuth1 एक्सेस टोकन का रिस्पॉन्स।`}),`\n`,_jsx(`div`,{id:`parameters`,children:_jsx(Heading,{level:`4`,id:`पैरामीटर-7`,children:`पैरामीटर`})}),`\n`,_jsx(ParamField,{path:`path.access_token`,type:`str`,id:`param-path-access-token-2`}),`\n`,_jsx(ParamField,{path:`path.access_token_secret`,type:`str`,id:`param-path-access-token-secret-2`}),`\n`,_jsx(`div`,{id:`__init__`,children:_jsx(Heading,{level:`3`,id:`__init__-2`,children:_jsx(_components.code,{children:`__init__`})})}),`\n`,_jsx(_components.p,{children:`OAuth1 एक्सेस टोकन को इनिशियलाइज़ करता है।`}),`\n`,_jsx(`div`,{id:`parameters`,children:_jsx(Heading,{level:`4`,id:`पैरामीटर-8`,children:`पैरामीटर`})}),`\n`,_jsx(ParamField,{path:`path.access_token`,type:`str`,id:`param-path-access-token-3`,children:_jsx(_components.p,{children:`एक्सेस टोकन।`})}),`\n`,_jsx(ParamField,{path:`path.access_token_secret`,type:`str`,id:`param-path-access-token-secret-3`,children:_jsx(_components.p,{children:`एक्सेस टोकन सीक्रेट।`})}),`\n`,_jsx(`div`,{id:`class-xdkoauth1_authoauth1requesttoken`,children:_jsx(Heading,{level:`3`,id:`class-xdk-oauth1_auth-oauth1requesttoken`,children:_jsx(_components.code,{children:`class xdk.oauth1_auth.OAuth1RequestToken`})})}),`\n`,_jsx(_components.p,{children:`OAuth1 रिक्वेस्ट टोकन का रिस्पॉन्स।`}),`\n`,_jsx(`div`,{id:`parameters`,children:_jsx(Heading,{level:`4`,id:`पैरामीटर-9`,children:`पैरामीटर`})}),`\n`,_jsx(ParamField,{path:`path.oauth_token`,type:`str`,id:`param-path-oauth-token`}),`\n`,_jsx(ParamField,{path:`path.oauth_token_secret`,type:`str`,id:`param-path-oauth-token-secret`}),`\n`,_jsx(`div`,{id:`__init__`,children:_jsx(Heading,{level:`3`,id:`__init__-3`,children:_jsx(_components.code,{children:`__init__`})})}),`\n`,_jsx(_components.p,{children:`OAuth1 रिक्वेस्ट टोकन को प्रारंभ करता है।`}),`\n`,_jsx(`div`,{id:`parameters`,children:_jsx(Heading,{level:`4`,id:`पैरामीटर-10`,children:`पैरामीटर`})}),`\n`,_jsx(ParamField,{path:`path.oauth_token`,type:`str`,id:`param-path-oauth-token-1`,children:_jsx(_components.p,{children:`OAuth टोकन।`})}),`\n`,_jsx(ParamField,{path:`path.oauth_token_secret`,type:`str`,id:`param-path-oauth-token-secret-1`,children:_jsx(_components.p,{children:`OAuth टोकन का सीक्रेट।`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"oauth1_auth","sidebarTitle":"oauth1_auth","description":null,"href":"/hi/xdks/python/reference/xdk.oauth1_auth","hidden":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"class xdk.oauth1_auth.OAuth1","slug":"class-xdk-oauth1_auth-oauth1","depth":3,"children":[]},{"title":"पैरामीटर","slug":"पैरामीटर","depth":4,"children":[]},{"title":"__init__","slug":"__init__","depth":3,"children":[]},{"title":"पैरामीटर","slug":"पैरामीटर-2","depth":4,"children":[]},{"title":"build_request_header","slug":"build_request_header","depth":3,"children":[]},{"title":"पैरामीटर","slug":"पैरामीटर-3","depth":4,"children":[]},{"title":"रिटर्न","slug":"रिटर्न","depth":4,"children":[]},{"title":"get_access_token","slug":"get_access_token","depth":3,"children":[]},{"title":"पैरामीटर","slug":"पैरामीटर-4","depth":4,"children":[]},{"title":"रिटर्न","slug":"रिटर्न-2","depth":4,"children":[]},{"title":"get_authorization_url","slug":"get_authorization_url","depth":3,"children":[]},{"title":"पैरामीटर","slug":"पैरामीटर-5","depth":4,"children":[]},{"title":"रिटर्न","slug":"रिटर्न-3","depth":4,"children":[]},{"title":"get_request_token","slug":"get_request_token","depth":3,"children":[]},{"title":"रिटर्न","slug":"रिटर्न-4","depth":4,"children":[]},{"title":"start_oauth_flow","slug":"start_oauth_flow","depth":3,"children":[]},{"title":"पैरामीटर","slug":"पैरामीटर-6","depth":4,"children":[]},{"title":"रिटर्न","slug":"रिटर्न-5","depth":4,"children":[]},{"title":"class xdk.oauth1_auth.OAuth1AccessToken","slug":"class-xdk-oauth1_auth-oauth1accesstoken","depth":3,"children":[]},{"title":"पैरामीटर","slug":"पैरामीटर-7","depth":4,"children":[]},{"title":"__init__","slug":"__init__-2","depth":3,"children":[]},{"title":"पैरामीटर","slug":"पैरामीटर-8","depth":4,"children":[]},{"title":"class xdk.oauth1_auth.OAuth1RequestToken","slug":"class-xdk-oauth1_auth-oauth1requesttoken","depth":3,"children":[]},{"title":"पैरामीटर","slug":"पैरामीटर-9","depth":4,"children":[]},{"title":"__init__","slug":"__init__-3","depth":3,"children":[]},{"title":"पैरामीटर","slug":"पैरामीटर-10","depth":4,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/generaltranslation/f67e695317871503/widgets.js","/_mintlify/custom/generaltranslation/dd4721d49d6e0698/sliders.js"],"subdomain":"generaltranslation","siteName":"X","title":"oauth1_auth - X","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/xdks/python/reference/xdk.oauth1_auth","matchLevel":1,"hidden":true},"es":{"href":"/es/xdks/python/reference/xdk.oauth1_auth","matchLevel":1,"hidden":true},"fr":{"href":"/fr/xdks/python/reference/xdk.oauth1_auth","matchLevel":1,"hidden":true},"hi":{"href":"/hi/xdks/python/reference/xdk.oauth1_auth","matchLevel":0},"ja":{"href":"/ja/xdks/python/reference/xdk.oauth1_auth","matchLevel":1,"hidden":true},"ko":{"href":"/ko/xdks/python/reference/xdk.oauth1_auth","matchLevel":1,"hidden":true}}},"lastModified":"2026-04-02T03:58:09.124Z","originalFileLocation":"hi/xdks/python/reference/xdk.oauth1_auth.mdx","locale":"hi"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Build, analyze, and innovate with X\u0026#x27;s real-time, global data and APIs. Access comprehensive API documentation, SDKs, tutorials, and developer tools.\">\u003cmeta data-mint-head name=\"application-name\" content=\"X\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"index, follow\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/generaltranslation/3OgqNYd4DMBAanRo/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/generaltranslation/3OgqNYd4DMBAanRo/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/generaltranslation/3OgqNYd4DMBAanRo/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/generaltranslation/3OgqNYd4DMBAanRo/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/generaltranslation/3OgqNYd4DMBAanRo/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/generaltranslation/3OgqNYd4DMBAanRo/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/generaltranslation/3OgqNYd4DMBAanRo/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/generaltranslation/3OgqNYd4DMBAanRo/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/generaltranslation/3OgqNYd4DMBAanRo/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"oauth1_auth - X\">\u003cmeta data-mint-head property=\"og:description\" content=\"Build, analyze, and innovate with X\u0026#x27;s real-time, global data and APIs. Access comprehensive API documentation, SDKs, tutorials, and developer tools.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"X Developer Platform\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.x.com/hi/xdks/python/reference/xdk.oauth1_auth\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://generaltranslation.mintlify.site/_mintlify/api/og/v2?division=OAuth1+%E0%A4%AA%E0%A5%8D%E0%A4%B0%E0%A4%AE%E0%A4%BE%E0%A4%A3%E0%A5%80%E0%A4%95%E0%A4%B0%E0%A4%A3\u0026amp;title=oauth1_auth\u0026amp;theme=3199bd2c292b5ac8dc3f7441\u0026amp;signature=c4793c24e6824696acccf860b92c2fee9604c3c18ba956f92a3012289804e2c1\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"oauth1_auth - X\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Build, analyze, and innovate with X\u0026#x27;s real-time, global data and APIs. Access comprehensive API documentation, SDKs, tutorials, and developer tools.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://generaltranslation.mintlify.site/_mintlify/api/og/v2?division=OAuth1+%E0%A4%AA%E0%A5%8D%E0%A4%B0%E0%A4%AE%E0%A4%BE%E0%A4%A3%E0%A5%80%E0%A4%95%E0%A4%B0%E0%A4%A3\u0026amp;title=oauth1_auth\u0026amp;theme=3199bd2c292b5ac8dc3f7441\u0026amp;signature=c4793c24e6824696acccf860b92c2fee9604c3c18ba956f92a3012289804e2c1\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/generaltranslation/3OgqNYd4DMBAanRo/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"X\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0E0E0E\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_US\">\u003cmeta data-mint-head name=\"author\" content=\"X Developer Platform\">\u003cmeta data-mint-head name=\"language\" content=\"en\">\u003cmeta data-mint-head name=\"googlebot\" content=\"index, follow\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.x.com/hi/xdks/python/reference/xdk.oauth1_auth\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/hi/xdks/python/reference/xdk.oauth1_auth.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"hi\" href=\"https://docs.x.com/hi/xdks/python/reference/xdk.oauth1_auth\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.x.com/xdks/python/reference/xdk.oauth1_auth\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.x.com/es/xdks/python/reference/xdk.oauth1_auth\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://docs.x.com/fr/xdks/python/reference/xdk.oauth1_auth\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://docs.x.com/ja/xdks/python/reference/xdk.oauth1_auth\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://docs.x.com/ko/xdks/python/reference/xdk.oauth1_auth\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.x.com/xdks/python/reference/xdk.oauth1_auth\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.x.com/#organization\",\"name\":\"X\",\"url\":\"https://docs.x.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/generaltranslation/p-tsc5qa00w8y5M4/logo/light.svg?fit=max\u0026auto=format\u0026n=p-tsc5qa00w8y5M4\u0026q=85\u0026s=299a991122fb35a82f868bc62a8be1ae\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.x.com#website\",\"name\":\"X\",\"url\":\"https://docs.x.com\",\"publisher\":{\"@id\":\"https://docs.x.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.x.com/hi/xdks/python/reference/xdk.oauth1_auth#webpage\",\"url\":\"https://docs.x.com/hi/xdks/python/reference/xdk.oauth1_auth\",\"name\":\"oauth1_auth\",\"dateModified\":\"2026-04-02T03:58:09.124Z\",\"isPartOf\":{\"@id\":\"https://docs.x.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.x.com/hi/xdks/python/reference/xdk.oauth1_auth#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.x.com/hi/xdks/python/reference/xdk.oauth1_auth#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API संदर्भ\",\"item\":\"https://docs.x.com/hi/xdks/python/reference/modules\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"कोर\",\"item\":\"https://docs.x.com/hi/xdks/python/reference/xdk.account_activity\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"oauth1_auth\",\"item\":\"https://docs.x.com/hi/xdks/python/reference/xdk.oauth1_auth\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.x.com/hi/xdks/python/reference/xdk.oauth1_auth#article\",\"headline\":\"oauth1_auth\",\"name\":\"oauth1_auth\",\"url\":\"https://docs.x.com/hi/xdks/python/reference/xdk.oauth1_auth\",\"mainEntityOfPage\":{\"@id\":\"https://docs.x.com/hi/xdks/python/reference/xdk.oauth1_auth#webpage\"},\"dateModified\":\"2026-04-02T03:58:09.124Z\",\"publisher\":{\"@id\":\"https://docs.x.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.x.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"X\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"X\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/hi/xdks/python/reference/xdk.oauth1_auth.md","siteName":"X","nav":{"global":null,"languages":[{"language":"en","pages":[{"title":"en","href":"/xdks/python/reference/xdk.oauth1_auth"}]},{"language":"es","pages":[{"title":"es","href":"/es/xdks/python/reference/xdk.oauth1_auth"}]},{"language":"fr","pages":[{"title":"fr","href":"/fr/xdks/python/reference/xdk.oauth1_auth"}]},{"language":"hi","tabs":[{"tab":"मुखपृष्ठ","pages":[{"title":"मुखपृष्ठ","href":"/hi/overview"}]},{"tab":"X API","pages":[{"title":"X API","href":"/hi/x-api/introduction"}]},{"tab":"X Ads API","pages":[{"title":"X Ads API","href":"/hi/x-ads-api/introduction"}]},{"tab":"XDKs","pages":[{"title":"XDKs","href":"/hi/xdks/overview"}]},{"tab":"ट्यूटोरियल","pages":[{"title":"ट्यूटोरियल","href":"/hi/tutorials/explore-a-users-posts"}]},{"tab":"उपयोग परिदृश्य","pages":[{"title":"उपयोग परिदृश्य","href":"/hi/use-cases/build-for-business"}]},{"tab":"सफलता की कहानियाँ","pages":[{"title":"सफलता की कहानियाँ","href":"/hi/success-stories"}]},{"tab":"स्थिति","pages":[{"title":"स्थिति","href":"/hi/status"}]},{"tab":"चेंजलॉग","pages":[{"title":"चेंजलॉग","href":"/hi/changelog"}]},{"tab":"Python SDK","hidden":true,"pages":[{"title":"Python XDK","sidebarTitle":"परिचय","description":null,"href":"/hi/xdks/python/overview"},{"title":"इंस्टॉल करें","sidebarTitle":"इंस्टॉल करें","description":null,"href":"/hi/xdks/python/install"},{"title":"त्वरित शुरुआत","sidebarTitle":"त्वरित शुरुआत","description":null,"href":"/hi/xdks/python/quickstart"},{"title":"प्रमाणीकरण","sidebarTitle":"प्रमाणीकरण","description":null,"href":"/hi/xdks/python/authentication"},{"title":"पेजिनेशन","sidebarTitle":"पेजिनेशन","description":null,"href":"/hi/xdks/python/pagination"},{"title":"स्ट्रीमिंग","sidebarTitle":"स्ट्रीमिंग","description":null,"href":"/hi/xdks/python/streaming"},{"group":"API संदर्भ","pages":[{"title":"xdk","sidebarTitle":"xdk","description":null,"href":"/hi/xdks/python/reference/modules"},{"group":"क्लाइंट्स","pages":[{"group":"Account Activity","pages":[{"title":"AccountActivityClient","sidebarTitle":"AccountActivityClient","description":null,"href":"/hi/xdks/python/reference/xdk.account_activity.client"}]},{"group":"गतिविधि","pages":[{"title":"ActivityClient","sidebarTitle":"ActivityClient","description":null,"href":"/hi/xdks/python/reference/xdk.activity.client"}]},{"group":"Client","pages":[{"title":"Client","sidebarTitle":"Client","description":null,"href":"/hi/xdks/python/reference/xdk.client"}]},{"group":"Communities","pages":[{"title":"CommunitiesClient","sidebarTitle":"CommunitiesClient","description":null,"href":"/hi/xdks/python/reference/xdk.communities.client"}]},{"group":"Community Notes","pages":[{"title":"CommunityNotesClient","sidebarTitle":"CommunityNotesClient","description":null,"href":"/hi/xdks/python/reference/xdk.community_notes.client"}]},{"group":"कंप्लायंस","pages":[{"title":"ComplianceClient","sidebarTitle":"ComplianceClient","description":null,"href":"/hi/xdks/python/reference/xdk.compliance.client"}]},{"group":"कनेक्शंस","pages":[{"title":"ConnectionsClient","sidebarTitle":"ConnectionsClient","description":null,"href":"/hi/xdks/python/reference/xdk.connections.client"}]},{"group":"डायरेक्ट मैसेज","pages":[{"title":"DirectMessagesClient","sidebarTitle":"DirectMessagesClient","description":null,"href":"/hi/xdks/python/reference/xdk.direct_messages.client"}]},{"group":"सामान्य","pages":[{"title":"GeneralClient","sidebarTitle":"GeneralClient","description":null,"href":"/hi/xdks/python/reference/xdk.general.client"}]},{"group":"सूचियाँ","pages":[{"title":"ListsClient","sidebarTitle":"ListsClient","description":null,"href":"/hi/xdks/python/reference/xdk.lists.client"}]},{"group":"मीडिया","pages":[{"title":"MediaClient","sidebarTitle":"MediaClient","description":null,"href":"/hi/xdks/python/reference/xdk.media.client"}]},{"group":"समाचार","pages":[{"title":"NewsClient","sidebarTitle":"NewsClient","description":null,"href":"/hi/xdks/python/reference/xdk.news.client"}]},{"group":"पोस्ट्स","pages":[{"title":"PostsClient","sidebarTitle":"PostsClient","description":null,"href":"/hi/xdks/python/reference/xdk.posts.client"}]},{"group":"Spaces","pages":[{"title":"SpacesClient","sidebarTitle":"SpacesClient","description":null,"href":"/hi/xdks/python/reference/xdk.spaces.client"}]},{"group":"स्ट्रीम","pages":[{"title":"StreamClient","sidebarTitle":"StreamClient","description":null,"href":"/hi/xdks/python/reference/xdk.stream.client"}]},{"group":"ट्रेंड्स","pages":[{"title":"TrendsClient","sidebarTitle":"TrendsClient","description":null,"href":"/hi/xdks/python/reference/xdk.trends.client"}]},{"group":"उपयोग","pages":[{"title":"UsageClient","sidebarTitle":"UsageClient","description":null,"href":"/hi/xdks/python/reference/xdk.usage.client"}]},{"group":"उपयोगकर्ता","pages":[{"title":"UsersClient","sidebarTitle":"UsersClient","description":null,"href":"/hi/xdks/python/reference/xdk.users.client"}]},{"group":"वेबहुक्स","pages":[{"title":"WebhooksClient","sidebarTitle":"WebhooksClient","description":null,"href":"/hi/xdks/python/reference/xdk.webhooks.client"}]}]},{"group":"मॉडल्स","pages":[{"group":"Account Activity","pages":[{"title":"Account_activity.Models","sidebarTitle":"Account_activity.Models","description":null,"href":"/hi/xdks/python/reference/xdk.account_activity.models"}]},{"group":"गतिविधि","pages":[{"title":"Activity.Models","sidebarTitle":"Activity.Models","description":null,"href":"/hi/xdks/python/reference/xdk.activity.models"}]},{"group":"Communities","pages":[{"title":"Communities.Models","sidebarTitle":"Communities.Models","description":null,"href":"/hi/xdks/python/reference/xdk.communities.models"}]},{"group":"Community Notes","pages":[{"title":"Community_notes.Models","sidebarTitle":"Community_notes.Models","description":null,"href":"/hi/xdks/python/reference/xdk.community_notes.models"}]},{"group":"कंप्लायंस","pages":[{"title":"Compliance.Models","sidebarTitle":"Compliance.Models","description":null,"href":"/hi/xdks/python/reference/xdk.compliance.models"}]},{"group":"कनेक्शंस","pages":[{"title":"Connections.Models","sidebarTitle":"Connections.Models","description":null,"href":"/hi/xdks/python/reference/xdk.connections.models"}]},{"group":"डायरेक्ट मैसेज","pages":[{"title":"Direct_messages.Models","sidebarTitle":"Direct_messages.Models","description":null,"href":"/hi/xdks/python/reference/xdk.direct_messages.models"}]},{"group":"सामान्य","pages":[{"title":"General.Models","sidebarTitle":"General.Models","description":null,"href":"/hi/xdks/python/reference/xdk.general.models"}]},{"group":"सूचियाँ","pages":[{"title":"Lists.Models","sidebarTitle":"Lists.Models","description":null,"href":"/hi/xdks/python/reference/xdk.lists.models"}]},{"group":"मीडिया","pages":[{"title":"Media.Models","sidebarTitle":"Media.Models","description":null,"href":"/hi/xdks/python/reference/xdk.media.models"}]},{"group":"समाचार","pages":[{"title":"News.Models","sidebarTitle":"News.Models","description":null,"href":"/hi/xdks/python/reference/xdk.news.models"}]},{"group":"पोस्ट्स","pages":[{"title":"Posts.Models","sidebarTitle":"Posts.Models","description":null,"href":"/hi/xdks/python/reference/xdk.posts.models"}]},{"group":"Spaces","pages":[{"title":"Spaces.Models","sidebarTitle":"Spaces.Models","description":null,"href":"/hi/xdks/python/reference/xdk.spaces.models"}]},{"group":"स्ट्रीम","pages":[{"title":"Stream.Models","sidebarTitle":"Stream.Models","description":null,"href":"/hi/xdks/python/reference/xdk.stream.models"}]},{"group":"ट्रेंड्स","pages":[{"title":"Trends.Models","sidebarTitle":"Trends.Models","description":null,"href":"/hi/xdks/python/reference/xdk.trends.models"}]},{"group":"उपयोग","pages":[{"title":"Usage.Models","sidebarTitle":"Usage.Models","description":null,"href":"/hi/xdks/python/reference/xdk.usage.models"}]},{"group":"उपयोगकर्ता","pages":[{"title":"Users.Models","sidebarTitle":"Users.Models","description":null,"href":"/hi/xdks/python/reference/xdk.users.models"}]},{"group":"वेबहुक्स","pages":[{"title":"Webhooks.Models","sidebarTitle":"Webhooks.Models","description":null,"href":"/hi/xdks/python/reference/xdk.webhooks.models"}]}]},{"group":"कोर","pages":[{"group":"Account Activity","pages":[{"title":"AccountActivityClient","sidebarTitle":"AccountActivityClient","description":null,"href":"/hi/xdks/python/reference/xdk.account_activity"}]},{"group":"गतिविधि","pages":[{"title":"ActivityClient","sidebarTitle":"ActivityClient","description":null,"href":"/hi/xdks/python/reference/xdk.activity"}]},{"group":"समुदाय","pages":[{"title":"CommunitiesClient","sidebarTitle":"CommunitiesClient","description":null,"href":"/hi/xdks/python/reference/xdk.communities"}]},{"group":"Community Notes","pages":[{"title":"CommunityNotesClient","sidebarTitle":"CommunityNotesClient","description":null,"href":"/hi/xdks/python/reference/xdk.community_notes"}]},{"group":"अनुपालन","pages":[{"title":"ComplianceClient","sidebarTitle":"ComplianceClient","description":null,"href":"/hi/xdks/python/reference/xdk.compliance"}]},{"group":"कनेक्शन","pages":[{"title":"ConnectionsClient","sidebarTitle":"ConnectionsClient","description":null,"href":"/hi/xdks/python/reference/xdk.connections"}]},{"group":"डायरेक्ट मैसेज","pages":[{"title":"DirectMessagesClient","sidebarTitle":"DirectMessagesClient","description":null,"href":"/hi/xdks/python/reference/xdk.direct_messages"}]},{"group":"सामान्य","pages":[{"title":"GeneralClient","sidebarTitle":"GeneralClient","description":null,"href":"/hi/xdks/python/reference/xdk.general"}]},{"group":"सूचियाँ","pages":[{"title":"ListsClient","sidebarTitle":"ListsClient","description":null,"href":"/hi/xdks/python/reference/xdk.lists"}]},{"group":"मीडिया","pages":[{"title":"MediaClient","sidebarTitle":"MediaClient","description":null,"href":"/hi/xdks/python/reference/xdk.media"}]},{"group":"समाचार","pages":[{"title":"NewsClient","sidebarTitle":"NewsClient","description":null,"href":"/hi/xdks/python/reference/xdk.news"}]},{"group":"OAuth1 प्रमाणीकरण","pages":[{"title":"oauth1_auth","sidebarTitle":"oauth1_auth","href":"/hi/xdks/python/reference/xdk.oauth1_auth"}]},{"group":"OAuth2 प्रमाणीकरण","pages":[{"title":"OAuth2PKCEAuth","sidebarTitle":"OAuth2PKCEAuth","description":null,"href":"/hi/xdks/python/reference/xdk.oauth2_auth"}]},{"group":"पैजिनेटर","pages":[{"title":"paginator","sidebarTitle":"paginator","description":null,"href":"/hi/xdks/python/reference/xdk.paginator"}]},{"group":"पोस्ट्स","pages":[{"title":"PostsClient","sidebarTitle":"PostsClient","description":null,"href":"/hi/xdks/python/reference/xdk.posts"}]},{"group":"Spaces","pages":[{"title":"SpacesClient","sidebarTitle":"SpacesClient","description":null,"href":"/hi/xdks/python/reference/xdk.spaces"}]},{"group":"स्ट्रीम","pages":[{"title":"StreamClient","sidebarTitle":"StreamClient","description":null,"href":"/hi/xdks/python/reference/xdk.stream"}]},{"group":"स्ट्रीमिंग","pages":[{"title":"स्ट्रीमिंग","sidebarTitle":"स्ट्रीमिंग","description":null,"href":"/hi/xdks/python/reference/xdk.streaming"}]},{"group":"ट्रेंड्स","pages":[{"title":"TrendsClient","sidebarTitle":"TrendsClient","description":null,"href":"/hi/xdks/python/reference/xdk.trends"}]},{"group":"उपयोग","pages":[{"title":"UsageClient","sidebarTitle":"UsageClient","description":null,"href":"/hi/xdks/python/reference/xdk.usage"}]},{"group":"उपयोगकर्ता","pages":[{"title":"UsersClient","sidebarTitle":"UsersClient","description":null,"href":"/hi/xdks/python/reference/xdk.users"}]},{"group":"वेबहुक्स","pages":[{"title":"WebhooksClient","sidebarTitle":"WebhooksClient","description":null,"href":"/hi/xdks/python/reference/xdk.webhooks"}]},{"group":"Xdk","pages":[{"title":"Client","sidebarTitle":"Client","description":null,"href":"/hi/xdks/python/reference/xdk"}]}]}]}]},{"tab":"TypeScript SDK","hidden":true,"pages":[{"title":"TypeScript SDK","href":"/hi/xdks/typescript/overview"}]}],"global":{"anchors":[{"anchor":"डेवलपर कंसोल","icon":"circle-play","href":"https://developer.x.com/en/portal/petition/essential/basic-info"},{"anchor":"फ़ोरम","icon":"messages","href":"https://devcommunity.x.com"},{"anchor":"GitHub","icon":"github","href":"https://github.com/xdevplatform"}]}},{"language":"ja","pages":[{"title":"ja","href":"/ja/xdks/python/reference/xdk.oauth1_auth"}]},{"language":"ko","pages":[{"title":"ko","href":"/ko/xdks/python/reference/xdk.oauth1_auth"}]}]},"basePath":"","title":"oauth1_auth - X","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":[],"chunks":[]}