Jump to content

Workflow to call a URL inserting a phone number


Recommended Posts

Edit : Updated this to make more sense

 

We use Ringcentral at work but the RingCentral app for Mac is horrible, IMO. I've been playing around with the API where you pass variables in the URL and it will dial the phone number for you. 

See below for the example of what it looks like:

Note: The URL is correct I've changed all my values. 

https://service.ringcentral.com/ringout.asp?cmd=call&username=8005551212&ext=123&password=password123&to={query}&from=4155551212&prompt=0

Now I can get this to work, for the most part, from doing the following.

 

  1. Go to features
  2. Click Contacts
  3. Click the + for custom actions
  4. Field = Phone
  5. Action = Pass to URL Scheme
  6. Then I put the above line in the next box

This works. I use Alfred to look up my contact, click the phone number and it opens up a web page, passes the URL complete and dials the phone.

 

Two Issues I have that I hope I can get some help with : 

  1. I really would rather not have a browser open. Is there a way that something can be done behind the scenes without the browser opening to pass the URL (this might be a dumb question but I figured I would ask).
  2. RingCentral, for some reason, even though I'm passing my credentials via the URL still wants me to have a session cookie in the browser otherwise I get an invalid username and password. Seems kind of strange but it might be a RingCentral limitation. 

Thanks for the help

 

Josh

PS. While I love this program it's absolutely killing me trying to find new ways to use Alfred to improve my daily work.  :)

Edited by JoshFink
Link to comment

Edit : Updated this to make more sense

 

We use Ringcentral at work but the RingCentral app for Mac is horrible, IMO. I've been playing around with the API where you pass variables in the URL and it will dial the phone number for you. 

See below for the example of what it looks like:

Note: The URL is correct I've changed all my values. 

https://service.ringcentral.com/ringout.asp?cmd=call&username=8005551212&ext=123&password=password123&to={query}&from=4155551212&prompt=0

Now I can get this to work, for the most part, from doing the following.

 

  1. Go to features
  2. Click Contacts
  3. Click the + for custom actions
  4. Field = Phone
  5. Action = Pass to URL Scheme
  6. Then I put the above line in the next box

This works. I use Alfred to look up my contact, click the phone number and it opens up a web page, passes the URL complete and dials the phone.

 

Two Issues I have that I hope I can get some help with : 

  1. I really would rather not have a browser open. Is there a way that something can be done behind the scenes without the browser opening to pass the URL (this might be a dumb question but I figured I would ask).
  2. RingCentral, for some reason, even though I'm passing my credentials via the URL still wants me to have a session cookie in the browser otherwise I get an invalid username and password. Seems kind of strange but it might be a RingCentral limitation. 

Thanks for the help

 

Josh

PS. While I love this program it's absolutely killing me trying to find new ways to use Alfred to improve my daily work.  :)

 

Take a look at the 'curl' command. It has a lot of options for GETing URLs.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...