fix request url construction

make API requests also work if no subdomain is given
Merge pull request #9 from chriswl/master

fix request url construction