question

Steve Johnson avatar image
Steve Johnson asked Steve Johnson commented

Can I use sms API without .env/.cfg etc?

I'm pretty new to APIs and am having a hard time applying the sms API.

Is there a way to simply save variables like RINGCENTRAL_CLIENT_ID in the actual script?

Python



sms and text messagingapi smspython
1 comment
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Hey, @Steve Johnson We've moved this to the Developer space for more visibility!

1 Like 1 ·

1 Answer

Phong Vu avatar image
Phong Vu answered Steve Johnson commented

Absolutely, using the .env or other configurations is just a great way to avoid putting sensitive information such as app credentials, username and password etc, in the code. But if you just want to test or you are sure your code is in a safe place, you can put the value directly on your code.

2 comments
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Thanks, so that isn't my mistake

lol there are so many errors thrown that I don't know what's wrong

for instance what am I supposed to do with '404 Client Error: Not Found for url' I've checked it and it is correct

0 Likes 0 ·

Is there a place I can just post the 10 lines of code?

0 Likes 0 ·

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys