Results 1 to 3 of 3

Thread: Need help with posting with HTTPS using SIMBA

  1. #1
    Join Date
    Sep 2014
    Posts
    447
    Mentioned
    10 Post(s)
    Quoted
    203 Post(s)

    Default Need help with posting with HTTPS using SIMBA

    To give a little background with things, I taught myself a lot of the language for SRL by reading through and learning from Clarity's Mud Rune script. There was one snippet of code which I really like that pushed notifications to an app using Pushover. Code snippet (with credit to Clarity of course):

    Simba Code:
    {PROCEDURE -- notifyMyPhone
      Purpose:  Sends notifications to the user's smartphone via Pushover.
      Comments: None.}

    procedure notifyMyPhone(title, message: string);
    var
      o: integer;
    begin
      o := initializeHTTPClient(false);
      postHTTPPage(o, 'http://api.pushover.net/1/messages.json', 'token=' + applicationToken + '&user=' + userKey + '&device=' + deviceName + '&title=' + title + '&message=' + message);
      freeHTTPClient(o);
    end;

    I read through this particular portion which eventually began to mae sense after some googling because it matched up with:

    http://www.w3schools.com/tags/ref_httpmethods.asp
    http://en.wikipedia.org/wiki/POST_(H...ting_web_forms
    https://pushover.net/api#messages

    However, pushover only has a 15 day trial period, so I looked to the popular alternative PushBullet. However, nothing is making any sense to me. Could someone help walk me through how to design a similar method that pushes to PushBullet instead?
    https://docs.pushbullet.com/#pushes

    I was hoping that after the method is worked up that I could post the code segment to the SRL snippets portion for everyone to use if they wished.

    Thanks, and any help is appreciated!

  2. #2
    Join Date
    Dec 2011
    Posts
    2,133
    Mentioned
    221 Post(s)
    Quoted
    1064 Post(s)

  3. #3
    Join Date
    Sep 2014
    Posts
    447
    Mentioned
    10 Post(s)
    Quoted
    203 Post(s)

    Default

    I'll try reading through those pages, but it's completely over my head at this moment haha. Oh well, I'll keep at it

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •