Fixes pagesize param was retrieved instead of pageSize

Also, force casting `offset` and `pageSize` parameters to integers.
Merge pull request #6 from n1k0/patch-1

Fixes pagesize param was retrieved instead of pageSize

Cheers n1k0 ! :)