Jump to content

New to API usage


Cusem
 Share

Recommended Posts

I never used API's before. I'd like to interface with the Amazon S3 API, Google Analytics API and Google Adsense Management API.

Is this possible with AutoIT?

Does somebody maybe has a tip on how to get started? Example script, documentation?

Thanks!

Link to comment
Share on other sites

  • 3 weeks later...

@Cusem

It is possible of course. But the question is why in AutoIT ?

There are multiple libraries available for other languages like PHP, .NET, JAVA, etc. but not yet any for AutoIT :-(

A few years back I developed the Google API connector for Google Docs in AU3.

But it take a lot of reading and testing to get it going.

So building it from scratch is possible but it will take quite some time doing so.

You can start looking at

ObjCreate("MSXML2.XMLHTTP.3.0")
to do the HTTP Requests.

rgds

ptrex

Link to comment
Share on other sites

  • 2 weeks later...

Thanks for reply ptrex. I'll look into MSXML2.XMLHTTP.3.0.

AutoIT is the only scripting language I'm familiar with. I've never used PHP, .Net or Java.

I got around it using the "S3.EXE" tool. This doesn't do everything I need, but does take care of the most important part; uploading files to an Amazon S3 bucket.

Link to comment
Share on other sites

  • 1 year later...

Hi Cusem, did you manage to use the "list" command using the s3 tool from autoit?

my code below returns nothing:

#include <Constants.au3>

dim $cmdOUT

$PID = run("s3.exe list",@TempDir,@SW_MAXIMIZE,$STDOUT_CHILD)
ProcessWait($PID) 
While 1
$line = StdoutRead($PID)
If @error = -1 Then ExitLoop
$cmdOUT &= $line
Wend
$rawIPC = $cmdOUT
MsgBox(1,"$cmdOUT=",$rawIPC)
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...