Added support for API V2
Merge pull request #469 from n1tr0g/master

Added support for API V2