leogomezz4t / PyTextNow_API

Python texting API utilizing TextNow API
MIT License
69 stars 42 forks source link

server returned a Client error. Request Failed. Status Code: 401 #12

Closed Hello2G closed 3 years ago

Hello2G commented 3 years ago

I try to use sample

from TNAPI import Client

client = Client("username@gmail.com", "password")
client.send_sms("phone number", "Hello")

but response

Exception has occurred: Client.FailedRequest Could not send message. server returned a Client error. Request Failed. Status Code: 401

leogomezz4t commented 3 years ago

Where did you get this sample

leogomezz4t commented 3 years ago

The sample you're using is a stock email address and phone number. You need to replace with you email and password for the website textnow.com. Then grab the cookie connect.sid from the application tab of chrome dev tools