Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
coloradoderek
Beginner


Joined: 07 Jan 2014
Posts: 18

PostPosted: Sat Jul 30, 2016 9:05 pm   

CMUD -> API Call?
 
Hello.

Can CMUD make an API call to a website?
using cURL or whatever equivilant?

I want to call a website function I've written that will notify my phone when something happens in a mud.

If it can't make an API call do you know of any other ways CMUD could cause a notification on a phone?

Thanks,
Derek Conlon
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sun Jul 31, 2016 12:03 am   
 
You can use the #URL command to open a page in a browser. For a little more control you can do some research on the OLE API for IWebBrowser2 https://msdn.microsoft.com/en-us/library/aa752127(v=vs.85).aspx and use the %comcreate and related functions to work with it.

In both cases you would probably need to attach some data into the URL by adding ?something=somedata to the end. The specific format for doing that would depend on the site you are seeking to interact with.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
coloradoderek
Beginner


Joined: 07 Jan 2014
Posts: 18

PostPosted: Sun Jul 31, 2016 1:24 am   
 
Sweet!!

I think opening a specific page with the GET variables will do what I need it to do!
I will test but that should work!

Thanks!!
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net