I hate using third party language libraries because they are often just a crappier more OOP'd version of a nice rest api. Here's a sample framework for automatically generating call chains that map to the RESTful url.
Just define the verbs and nouns you want to use in the resources set. And when the API changes or adds new endpoint, just toss em in there too!
POST /buttons maps to api.buttons.post
or