Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clicksend usernames as email address #1103

Closed
MaleNurse opened this issue Apr 10, 2024 · 7 comments
Closed

Clicksend usernames as email address #1103

MaleNurse opened this issue Apr 10, 2024 · 7 comments
Labels

Comments

@MaleNurse
Copy link

📣 Notification Service(s) Impacted
Clicksend

🐞 Describe the bug
Usernames are email addresses and the config does not accept them due to "@" being used prior to setting the target phone number. I can't find a way to change/create a simple username in the Clicksend dashboard. Perhaps there is a way to utilize the REST API and specify our username akin to how this is done in the email setup?

💻 Your System Details:

  • OS: TrueNAS Scale (Debian 12 Bookworm) via Docker
  • Python Version: Python 3.11.2
@MaleNurse MaleNurse added the bug label Apr 10, 2024
@caronc
Copy link
Owner

caronc commented Apr 12, 2024

Try using ?user=your@email.address or you can also just escape the @ (see here) with %40

@caronc
Copy link
Owner

caronc commented Apr 13, 2024

To further your comment, i like the idea of remapping how content is parsed, but would that impact users who don't use an email address? I recall setting this up (my acccount has long expired as it's been a while), i had a regualr user id (not email). - I could be wrong here though (it's the reason i'm asking 🙂 )

If i change it to the format you suggest, i would break the current design for others.

Thoughts?

@MaleNurse
Copy link
Author

So both suggestions placed the correct strings into the user/pass according to the CLI -vvvv output (assuming clicksend is accepting the escaped @), but I'm getting 401 invalid credential errors w/ both my acct password and API key

@luckman212
Copy link

Came here to report the same. Getting

DEBUG - ClickSend POST URL: https://rest.clicksend.com/v3/sms/send (cert_verify=True)
DEBUG - ClickSend Payload: {'messages': [{'source': 'php', 'body': 'HelloWorld', 'to': '+1646XXXXXXX'}]}
WARNING - Failed to send 1 ClickSend notification to 1646XXXXXXX: Unauthorized - Invalid Token., error=401.
DEBUG - Response Details:
b'{"http_code":401,"response_code":"UNAUTHORIZED","response_msg":"Authorization failed.","data":null}'

apprise 1.7.6, I verified my credentials (I use a username:apikey, not email address)

@caronc
Copy link
Owner

caronc commented May 5, 2024

Okay, I'll resign up and investigate

@caronc
Copy link
Owner

caronc commented May 5, 2024

I was able to reproduce your issue and fixed it in this latest PR.

I also can confirm that I signed up with them a loonng time ago and they didn't have as heavy restrictions as they do today. But my login of l2g is grandfathered in (not an email). I had to use clicksend://l2g:apikey/... to work. Basically I won't be able to do the email request to rework the URL otherwise it would break for others (me included 😉 ).

@caronc
Copy link
Owner

caronc commented May 5, 2024

Closing issue; check out @master branch and you'll be good to go. I'll do a new release hopefully next week.

@caronc caronc closed this as completed May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants