Created
December 15, 2018 16:53
-
-
Save grundyoso/93600fab5df567280cb74fc2947560bb 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
curl 'https://dev-api.passninja.com/public/demo/make-pass' -v \ | |
-H 'origin: https://passninja.com' \ | |
-H 'accept-encoding: gzip, deflate, br' \ | |
-H 'accept-language: en-US,en;q=0.9' \ | |
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36' \ | |
-H 'content-type: application/json' \ | |
-H 'accept: application/json, text/plain, */*' \ | |
-H 'referer: https://passninja.com/demo/make-pass' \ | |
-H 'authority: dev-api.passninja.com' \ | |
--data-binary '{"googlePass":{"kind":"walletobjects#loyaltyObject","id":"3175895186863635130.PassNinjaDemoLoyaltyClass.TODO","classId":"3175895186863635130.PassNinjaDemoLoyaltyClass","version":"1","state":"active","hasUsers":false,"smartTapRedemptionValue":"3175895186863635130.PassNinjaDemoLoyaltyClass.TODO","classReference":{"kind":"walletobjects#loyaltyClass","id":"3175895186863635130.PassNinjaDemoLoyaltyClass","version":"1","issuerName":"Ninja Fashionista","messages":[{"kind":"walletobjects#walletObjectMessage","header":"Stores Valid","body":"All Stores","displayInterval":{"kind":"walletobjects#timeInterval","start":{"date":"2018-05-03T12:10:00.000Z"}},"messageType":"text"}],"allowMultipleUsersPerObject":true,"locations":[{"kind":"walletobjects#latLongPoint","latitude":37.424354,"longitude":-122.09508869999999},{"kind":"walletobjects#latLongPoint","latitude":37.424015499999996,"longitude":-122.09259560000001},{"kind":"walletobjects#latLongPoint","latitude":40.7406578,"longitude":-74.00208940000002},{"kind":"walletobjects#latLongPoint","latitude":37.7901435,"longitude":-122.39026709999997}],"reviewStatus":"approved","imageModulesData":[{"mainImage":{"kind":"walletobjects#image","sourceUri":{"kind":"walletobjects#uri","uri":"https://image.ibb.co/gSd7dp/ninja_fashion2.png"}}}],"textModulesData":[{"header":"Rewards details","body":"This loyalty card is valid for any purchases at any Ninja Fashionista store."}],"linksModuleData":{"uris":[{"kind":"walletobjects#uri","uri":"http://maps.google.com/?q=google","description":"Nearby Locations"},{"kind":"walletobjects#uri","uri":"tel:6505555555","description":"Call Customer Service"}]},"redemptionIssuers":["3175895186863635130"],"heroImage":{"kind":"walletobjects#image","sourceUri":{"kind":"walletobjects#uri","uri":"https://image.ibb.co/iVVTJp/ninja_fashion.png"}},"enableSmartTap":true,"hexBackgroundColor":"#571616","multipleDevicesAndHoldersAllowedStatus":"multipleHolders","programName":"Ninja Fashionista Loyalty Card","programLogo":{"kind":"walletobjects#image","sourceUri":{"kind":"walletobjects#uri","uri":"https://image.ibb.co/j2OD3d/ninji.png"}},"accountNameLabel":"Member Name","accountIdLabel":"Member Id","rewardsTierLabel":"Level","rewardsTier":"Platinum"},"accountName":"Richard G ","accountId":"123423133","loyaltyPoints":{"label":"Points","balance":{"string":"713"}},"secondaryLoyaltyPoints":{"label":"Credit","balance":{"money":{"kind":"walletobjects#money","micros":"1111000000","currencyCode":"USD"}}}},"contact":{"email":"richard.grundy@gmail.com"},"applePass":{"formatVersion":1,"passTypeIdentifier":"pass.com.ndudfield.nfc","teamIdentifier":"Q338UYGFZ8","serialNumber":"nmyuxofgnaasdasdfasdf","organizationName":"PassNinja","description":"Ninja Fashionista","foregroundColor":"rgb(255,255,255)","backgroundColor":"rgb(87,22,22)","labelColor":"rgb(198,130,0)","logoText":"Ninja Fashionista","barcodes":[{"message":"Ninja Fashionista, for stealth fashion","format":"PKBarcodeFormatPDF417","messageEncoding":"iso-8859-1"}],"locations":[{"latitude":37.3229,"longitude":-122.0323},{"latitude":37.3286,"longitude":-122.0143},{"altitude":10,"latitude":37.331,"longitude":-122.029,"relevantText":"Store nearby on 3rd and Main."}],"storeCard":{"headerFields":[{"key":"expires","label":"Expires","dateStyle":"PKDateStyleShort","timeStyle":"PKDateStyleNone","value":"2019-02-14T19:30+07:00"}],"primaryFields":[{"key":"store","label":"713 Points","value":"Ninja Fashionista Loyalty Card"}],"secondaryFields":[{"key":"member","label":"Member","value":"Auston B"}],"auxiliaryFields":[{"key":"stores","label":"Stores valid","value":"All Stores"},{"key":"credit","label":"Credit","value":"11:11"}],"backFields":[{"key":"notTransferable","label":"Please note","value":"This loyalty card is not transferable."},{"key":"purchases","label":"Valid purchases","value":"This loyalty card is valid for any purchases at any Ninja Fashionista store."}]}},"appleTemplateBaseUrl":"https://passninja.com/assets/apple-pass/template/passes/passNinjaLoyalty.pass"}' --compressed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment