-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
مشکل کلی در api
کلید دسترسی ساخته شده، ولی همه متد ها این ارور رو میدن
code 401 : You cant Access this route
نمونه کد :
import requests
URL = "https://api2.ippanel.com/api/v1/sms/send/webservice/single"
API = "XXXXXXXXXXXXXXXXXXXXXXXX"
def send_sms(phone:str, message):
data = dict(recipient = [phone,],
sender = "+989982003784",
message = message)
a = requests.post(URL,data, headers=dict(apikey=API))
print(a.text)
if __name__ == "__main__":
send_sms('XXXXXXXX', 'تست api شماره 1',)
PurTahan
Metadata
Metadata
Assignees
Labels
No labels