gem now calls API v2
add to_param for hash and array