Closed aarreess00 closed 8 months ago
سلام و وقت به خیر . برای لاگین با بات، باید otp اکانتتون رو فعال کنید و حتما otp رو هم پاس بدید. برای اطلاع از نحوهی پاس دادن otp ، به داکیومنتیشن رجوع کنید.
On Tue, Nov 7, 2023 at 6:30 PM aarreess00 @.***> wrote:
هدف
خطای missing otp هنگام درخواست توکن محیط درخواست
- ابزار درخواست (مرورگر/ابزار/برنامه/...)
- زبان برنامه (cURL/Python/PHP/...)
- محل درخواست (local/VPS/...)
- درخواست IP (داخلی/خارجی)
- ... python
نحوه درخواست
import requests
url = "https://testnetapi.nobitex.ir/auth/login/"
payload = { "username": " ", "password": "", "captcha": "api" } headers = { "Content-Type": "application/json", "User-Agent": "insomnia/8.3.0" }
response = requests.request("POST", url, json=payload, headers=headers)
print(response.text) پاسخ دریافتی
{ "non_field_errors": [ "OTP not provided" ], "code": "MissingOTP" } اطلاعات تکمیلی
No response
— Reply to this email directly, view it on GitHub https://github.com/nobitex/docs-api/issues/199, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXVCGF4Z3KEZZMY7IH6GCLYDJEKTAVCNFSM6AAAAAA7BKVYVKVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE4DCNJXGAYTAMA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
هدف
خطای missing otp هنگام درخواست توکن
محیط درخواست
نحوه درخواست
import requests
url = "https://testnetapi.nobitex.ir/auth/login/"
payload = { "username": "", "password": "", "captcha": "api" } headers = { "Content-Type": "application/json", "User-Agent": "insomnia/8.3.0" }
response = requests.request("POST", url, json=payload, headers=headers)
print(response.text)
پاسخ دریافتی
{ "non_field_errors": [ "OTP not provided" ], "code": "MissingOTP" }
اطلاعات تکمیلی
No response