Last active
March 2, 2018 20:55
-
-
Save rakibulislam/b9f5fc95d5db2465c7eb3299426e5787 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CURRENT_DATE=`date -Ru | sed 's/+0000/GMT/'` | |
CHECKSUM=$(echo -n "application/json,,$CURRENT_DATE" \ | |
| openssl dgst -sha1 -binary -hmac "your-secret-key" \ | |
| base64) | |
curl "https://apix.casiregalii.com/rpps_billers" \ | |
-X GET \ | |
-H "Accept: application/vnd.regalii.v3.2+json" \ | |
-H "Content-Type: application/json" \ | |
-H "Content-MD5:" \ | |
-H "Date: $CURRENT_DATE" \ | |
-H "Authorization: APIAuth your-api-key:$CHECKSUM" | |
# => JSON Response | |
{ | |
"rpps_billers": | |
[{"id":"1cb92e71-5642-4be6-89c2-be197c026490","name":"1000 Granville Homeowners Association","biller_type":"Core","biller_class":"Homeowners Association","country":"USA","state":null,"territory_code":null,"currency":"USD","addresses":[{"city":"San Francisco","state":"CA","country":"USA","address1":"PO Box 45463","address2":null,"eff_date":"2010-07-26","external_id":"67942","postal_code":"94145-0463","address_type":"Standard"}], masks: [{"length"=>"16", "eff_date"=>"2008-02-25", "exception"=>false, "external_id"=>"245549", "mask_format"=>"452185##########", "descriptions"=>[]}, {"length"=>"16", "eff_date"=>"2008-02-25", "exception"=>false, "external_id"=>"245550", "mask_format"=>"452186##########", "descriptions"=>[]}, {"length"=>"16", "eff_date"=>"2008-02-25", "exception"=>false, "external_id"=>"245551", "mask_format"=>"449421##########", "descriptions"=>[]}, {"length"=>"16", "eff_date"=>"2008-02-25", "exception"=>false, "external_id"=>"245552", "mask_format"=>"438583##########", "descriptions"=>[]}, {"length"=>"16", "eff_date"=>"2008-02-25", "exception"=>false, "external_id"=>"245553", "mask_format"=>"444712##########", "descriptions"=>[]}, {"length"=>"16", "eff_date"=>"2008-02-25", "exception"=>false, "external_id"=>"245554", "mask_format"=>"542341##########", "descriptions"=>[]}, {"length"=>"16", "eff_date"=>"2008-02-25", "exception"=>false, "external_id"=>"245555", "mask_format"=>"545554##########", "descriptions"=>[]}]}, | |
{"id":"5ce2fc37-a755-4e15-ad43-a44443d20bdb","name":"1000 Ocean Hoa","biller_type":"Core","biller_class":"Homeowners Association","country":"USA","state":null,"territory_code":null,"currency":"USD","addresses":[{"city":"Los Angeles","state":"CA","country":"USA","address1":"PO Box 515287","address2":null,"eff_date":"2010-10-11","external_id":"72008","postal_code":"90051-6587","address_type":"Standard"}], masks: [{"length"=>"16", "eff_date"=>"2008-02-25", "exception"=>false, "external_id"=>"245549", "mask_format"=>"452185##########", "descriptions"=>[]}, {"length"=>"16", "eff_date"=>"2008-02-25", "exception"=>false, "external_id"=>"245550", "mask_format"=>"452186##########", "descriptions"=>[]}, {"length"=>"16", "eff_date"=>"2008-02-25", "exception"=>false, "external_id"=>"245551", "mask_format"=>"449421##########", "descriptions"=>[]}, {"length"=>"16", "eff_date"=>"2008-02-25", "exception"=>false, "external_id"=>"245552", "mask_format"=>"438583##########", "descriptions"=>[]}, {"length"=>"16", "eff_date"=>"2008-02-25", "exception"=>false, "external_id"=>"245553", "mask_format"=>"444712##########", "descriptions"=>[]}, {"length"=>"16", "eff_date"=>"2008-02-25", "exception"=>false, "external_id"=>"245554", "mask_format"=>"542341##########", "descriptions"=>[]}, {"length"=>"16", "eff_date"=>"2008-02-25", "exception"=>false, "external_id"=>"245555", "mask_format"=>"545554##########", "descriptions"=>[]}]}, | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment