use the provided param names

if you provided custom param names these weren't being used to build the
query string previously
Merge pull request #1 from martin308/use-custom-params

use custom params to build query string