deseven / libmegaplan

library for Megaplan API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

libmegaplan

Library to work with Megaplan API.
ASCII only as it statically linked to libcurl.
Windows dll: libmegaplan.zip
OS X dylib: libmegaplan-osx.zip
Contact me if you need linux binaries.

usage

mega_version() - returns string with lib version
mega_auth(login,password,base_url,agent) - returns string (JSON) with authorization result, "0" if authorization failed and "-1" if there is no answer. Grab AccessId and SecretKey from it.
mega_query(access_id,secret_key,query,base_url,timezone,agent) - returns string (JSON) with query result, "0" if authorization failed and "-1" if there is no answer.
mega_comparedates(date1,date2) - compares dates in Megaplan format (YYYY-MM-DD hh:mm:ss), returns true if the second date is the latter.

notes

If you keep getting failed authorizations while sending queries - doublecheck your timezone and time.
For PureBasic you can use the included pb-wrapper.pb.

About

library for Megaplan API

License:The Unlicense


Languages

Language:PureBasic 100.0%