Jump to content
Sign in to follow this  
Cusem

New to API usage

Recommended Posts

Cusem

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!

Share this post


Link to post
Share on other sites
Cusem

bump. Any help would be greatly appreciated.

Would even be willing to pay, except if that's against forum usage rules of course.

Share this post


Link to post
Share on other sites
ptrex

@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

Share this post


Link to post
Share on other sites
Cusem

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.

Share this post


Link to post
Share on other sites
adamchapman

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)

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.