Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Method POST
- URL : https://api.hellokeed.com/api/v1/shopping/orders
- Parameters : {
- currentProduct = stockage;
- "delivery_cost" = 0;
- "order_elements" = (
- {
- extra = {
- localeIdentifier = "<__NSCFLocale: 0x12903e960>";
- price = {
- currency = EUR;
- price = "29.99";
- };
- productIdentifier = "keed_stockage_10Go";
- transactionIdentifier = 1000000173416478;
- transactionReceiptURL = "file:///private/var/mobile/Containers/Data/Application/679B7F48-47D6-45D8-AF91-10582F8D832E/StoreKit/sandboxReceipt";
- type = stockage;
- };
- isValide = 0;
- kid = 55e9e5b1dc16a023498b4569;
- kidDetail = {
- "avatar_photo" = "55e9e507dc16a023498b4567/55e9e507dc16a023498b4567_144139205010.8951_RLbUE8.jpg";
- "birth_date" = 1366742427;
- "cover_photo" = "55e9e507dc16a023498b4567/55e9e507dc16a023498b4567_144139205182.9903_00T3Rn.jpg";
- "expected_birth_date" = 1366742427;
- firstname = Jayden;
- gender = m;
- id = 55e9e5b1dc16a023498b4569;
- lastname = "Hagner\U00e9";
- sharing = {
- 1 = {
- id = 55e9f023dc16a0725c8b4568;
- "is_authorized_print" = 1;
- nickname = Potjanee;
- role = 3;
- user = {
- "avatar_photo" = "55e9edf2dc16a06f5c8b4567/55e9edf2dc16a06f5c8b4567_144139512578.4084_BVSkoy.jpg";
- devices = (
- );
- email = "ppetchploy@gmail.com";
- firstname = Potjanee;
- id = 55e9edf2dc16a06f5c8b4567;
- kids = (
- );
- lastname = Petchploy;
- locale = fr;
- medias = (
- );
- preference = {
- "length_unit_system" = 1;
- "weight_unit_system" = 1;
- };
- sharing = (
- );
- };
- };
- 2 = {
- id = 55f2d25cdc16a0915f8b4573;
- "is_authorized_print" = 1;
- nickname = yoyo12;
- role = 2;
- user = {
- devices = (
- );
- email = "yoyo12@test.fr";
- firstname = yoyo12;
- id = 55f2cf17dc16a0b2088b456f;
- kids = (
- );
- lastname = hagnere;
- locale = fr;
- medias = (
- );
- preference = {
- "length_unit_system" = 1;
- "weight_unit_system" = 1;
- };
- sharing = (
- );
- };
- };
- 3 = {
- id = 55f2dc00dc16a0d91c8b4567;
- "is_authorized_print" = 1;
- nickname = Maxime;
- role = 2;
- user = {
- devices = (
- );
- email = "maxime@redking.fr";
- firstname = Maxime;
- id = 55f2b81fdc16a07a5f8b456b;
- kids = (
- );
- lastname = RedKing;
- locale = en;
- medias = (
- );
- preference = {
- "length_unit_system" = 1;
- "weight_unit_system" = 1;
- };
- sharing = (
- );
- };
- };
- 4 = {
- id = 55f2dc58dc16a0da1c8b4567;
- "is_authorized_print" = 1;
- nickname = Aurelia;
- role = 2;
- user = {
- "avatar_photo" = "55f2ac93dc16a0b1088b4567/55f2ac93dc16a0b1088b4567_144196826028.7218_uwCzio.jpg";
- devices = (
- );
- email = "aurelia@hellokeed.com";
- firstname = Aurelia;
- id = 55f2ac93dc16a0b1088b4567;
- kids = (
- );
- lastname = Zambon;
- locale = fr;
- medias = (
- );
- preference = {
- "length_unit_system" = 1;
- "weight_unit_system" = 1;
- };
- sharing = (
- );
- };
- };
- 5 = {
- id = 55f2de54dc16a0b5268b4567;
- "is_authorized_print" = 1;
- nickname = yoyo6;
- role = 2;
- user = {
- devices = (
- );
- email = "yoyo6@test.fr";
- firstname = yoyo6;
- id = 55f2c742dc16a0b4088b4570;
- kids = (
- );
- lastname = hagnere;
- locale = en;
- medias = (
- );
- preference = {
- "length_unit_system" = 1;
- "weight_unit_system" = 1;
- };
- sharing = (
- );
- };
- };
- 6 = {
- id = 55f2dea8dc16a0b5268b4568;
- "is_authorized_print" = 1;
- nickname = yoyo10;
- role = 2;
- user = {
- devices = (
- );
- email = "yoyo10@test.fr";
- firstname = yoyo10;
- id = 55f2cba3dc16a025078b456c;
- kids = (
- );
- lastname = hagnere;
- locale = en;
- medias = (
- );
- preference = {
- "length_unit_system" = 1;
- "weight_unit_system" = 1;
- };
- sharing = (
- );
- };
- };
- };
- videos = (
- );
- };
- product = "keed_stockage_10Go";
- productDetail = (
- {
- "created_at" = 1432939784;
- enabled = 1;
- id = "keed_stockage_50Go";
- name = "Stockage 50 Go";
- picture = "stockage_100.png";
- price = {
- amount = "99.98999999999999";
- currency = EUR;
- };
- "updated_at" = 1443201855;
- },
- {
- "created_at" = 1432939704;
- enabled = 1;
- id = "keed_stockage_10Go";
- name = "Stockage 5 Go";
- picture = "storage_10Go.png";
- price = {
- amount = "29.99";
- currency = EUR;
- };
- "updated_at" = 1441186825;
- },
- {
- "created_at" = 1432939741;
- enabled = 1;
- id = "keed_stockage_25Go";
- name = "Stockage 20 Go";
- price = {
- amount = "59.99";
- currency = EUR;
- };
- "updated_at" = 1441186839;
- }
- );
- type = stockage;
- weight = 0;
- }
- );
- "payment_method" = cb;
- status = 2;
- "total_exc" = 0;
- user = 55e9e507dc16a023498b4567;
- }
- iOS_ERROR : Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: bad request (400)" UserInfo={com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x12900f4f0> { URL: https://api.hellokeed.com/api/v1/shopping/orders } { status code: 400, headers {
- "Cache-Control" = "no-cache";
- Connection = "keep-alive";
- "Content-Type" = "application/json";
- Date = "Fri, 25 Sep 2015 18:15:36 GMT";
- Server = "nginx/1.8.0";
- "Transfer-Encoding" = Identity;
- "X-Powered-By" = "PHP/5.5.29-1+deb.sury.org~trusty+3";
- } }, NSErrorFailingURLKey=https://api.hellokeed.com/api/v1/shopping/orders, com.alamofire.serialization.response.error.data=<7b22636f 6465223a 3430302c 226d6573 73616765 223a2250 6172616d 65746572 73206d69 7373696e 67227d>, NSLocalizedDescription=Request failed: bad request (400)}
- RESPONSE : <NSHTTPURLResponse: 0x12900f4f0> { URL: https://api.hellokeed.com/api/v1/shopping/orders } { status code: 400, headers {
- "Cache-Control" = "no-cache";
- Connection = "keep-alive";
- "Content-Type" = "application/json";
- Date = "Fri, 25 Sep 2015 18:15:36 GMT";
- Server = "nginx/1.8.0";
- "Transfer-Encoding" = Identity;
- "X-Powered-By" = "PHP/5.5.29-1+deb.sury.org~trusty+3";
- } }
- {"code":400,"message":"Parameters missing"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement