Jump to content

Need help translating this into autoit language to send notifications to android device


Raizeno
 Share

Recommended Posts

Hello guys !

So i'm trying to make my script push notifications to my android device trought the Pushover application the thing is they don't offer the code for AutoIt so could you please help me out translating this code !

this is the C#/.NET  version of the code.

var parameters = new NameValueCollection {
    { "token", "APP_TOKEN" },
    { "user", "USER_KEY" },
    { "message", "hello world" }
};

using (var client = new WebClient())
{
    client.UploadValues("https://api.pushover.net/1/messages.json", parameters);
}
  1. How do I send Pushover notifications in C#/.NET?
  2. How do I send Pushover notifications in Go?
  3. How do I send Pushover notifications in Haskell?
  4. How do I send Pushover notifications in Java?
  5. How do I send Pushover notifications in Lua?
  6. How do I send Pushover notifications in Node.js?
  7. How do I send Pushover notifications in Perl?
  8. How do I send Pushover notifications in PHP?
  9. How do I send Pushover notifications in Python?
  10. How do I send Pushover notifications in R?
  11. How do I send Pushover notifications in Ruby?
  12. How do I send Pushover notifications from a Unix command line?
  13. How do I send Pushover notifications from a Windows command line

 

I posted links from other programing languages they provide if you guys are more familiar with any of those !

Here is also some info on how the message can be sent : https://pushover.net/api#messages

Regards ,

     Raizeno

Edited by Raizeno
Link to comment
Share on other sites

seems lixe the data must be sent in JSON or XML formats and i have no clue what those are. Here is what they say on the push message API instructions:

 

"The .json suffix requests that the response be in JSON format. https://api.pushover.net/1/messages. xml may be used instead to receive an XML response. Note that this does not affect how you send your parameters to our server (which should be in the standard percent-encoding format), only how our server responds. We do not support receiving JSON or XML-encoded parameters."

 

Also i have no clue what percent-encoding format is.

 

i have basicly no understanding of WinHTTP functions so any help would be much appreciated !

Thanks in advance !

     Raizeno

Edited by Raizeno
Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...