Advertisement
Guest User

Untitled

a guest
Sep 25th, 2015
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.86 KB | None | 0 0
  1. Method POST
  2. URL : https://api.hellokeed.com/api/v1/shopping/orders
  3. Parameters : {
  4. currentProduct = stockage;
  5. "delivery_cost" = 0;
  6. "order_elements" = (
  7. {
  8. extra = {
  9. localeIdentifier = "<__NSCFLocale: 0x12903e960>";
  10. price = {
  11. currency = EUR;
  12. price = "29.99";
  13. };
  14. productIdentifier = "keed_stockage_10Go";
  15. transactionIdentifier = 1000000173416478;
  16. transactionReceiptURL = "file:///private/var/mobile/Containers/Data/Application/679B7F48-47D6-45D8-AF91-10582F8D832E/StoreKit/sandboxReceipt";
  17. type = stockage;
  18. };
  19. isValide = 0;
  20. kid = 55e9e5b1dc16a023498b4569;
  21. kidDetail = {
  22. "avatar_photo" = "55e9e507dc16a023498b4567/55e9e507dc16a023498b4567_144139205010.8951_RLbUE8.jpg";
  23. "birth_date" = 1366742427;
  24. "cover_photo" = "55e9e507dc16a023498b4567/55e9e507dc16a023498b4567_144139205182.9903_00T3Rn.jpg";
  25. "expected_birth_date" = 1366742427;
  26. firstname = Jayden;
  27. gender = m;
  28. id = 55e9e5b1dc16a023498b4569;
  29. lastname = "Hagner\U00e9";
  30. sharing = {
  31. 1 = {
  32. id = 55e9f023dc16a0725c8b4568;
  33. "is_authorized_print" = 1;
  34. nickname = Potjanee;
  35. role = 3;
  36. user = {
  37. "avatar_photo" = "55e9edf2dc16a06f5c8b4567/55e9edf2dc16a06f5c8b4567_144139512578.4084_BVSkoy.jpg";
  38. devices = (
  39. );
  40. email = "ppetchploy@gmail.com";
  41. firstname = Potjanee;
  42. id = 55e9edf2dc16a06f5c8b4567;
  43. kids = (
  44. );
  45. lastname = Petchploy;
  46. locale = fr;
  47. medias = (
  48. );
  49. preference = {
  50. "length_unit_system" = 1;
  51. "weight_unit_system" = 1;
  52. };
  53. sharing = (
  54. );
  55. };
  56. };
  57. 2 = {
  58. id = 55f2d25cdc16a0915f8b4573;
  59. "is_authorized_print" = 1;
  60. nickname = yoyo12;
  61. role = 2;
  62. user = {
  63. devices = (
  64. );
  65. email = "yoyo12@test.fr";
  66. firstname = yoyo12;
  67. id = 55f2cf17dc16a0b2088b456f;
  68. kids = (
  69. );
  70. lastname = hagnere;
  71. locale = fr;
  72. medias = (
  73. );
  74. preference = {
  75. "length_unit_system" = 1;
  76. "weight_unit_system" = 1;
  77. };
  78. sharing = (
  79. );
  80. };
  81. };
  82. 3 = {
  83. id = 55f2dc00dc16a0d91c8b4567;
  84. "is_authorized_print" = 1;
  85. nickname = Maxime;
  86. role = 2;
  87. user = {
  88. devices = (
  89. );
  90. email = "maxime@redking.fr";
  91. firstname = Maxime;
  92. id = 55f2b81fdc16a07a5f8b456b;
  93. kids = (
  94. );
  95. lastname = RedKing;
  96. locale = en;
  97. medias = (
  98. );
  99. preference = {
  100. "length_unit_system" = 1;
  101. "weight_unit_system" = 1;
  102. };
  103. sharing = (
  104. );
  105. };
  106. };
  107. 4 = {
  108. id = 55f2dc58dc16a0da1c8b4567;
  109. "is_authorized_print" = 1;
  110. nickname = Aurelia;
  111. role = 2;
  112. user = {
  113. "avatar_photo" = "55f2ac93dc16a0b1088b4567/55f2ac93dc16a0b1088b4567_144196826028.7218_uwCzio.jpg";
  114. devices = (
  115. );
  116. email = "aurelia@hellokeed.com";
  117. firstname = Aurelia;
  118. id = 55f2ac93dc16a0b1088b4567;
  119. kids = (
  120. );
  121. lastname = Zambon;
  122. locale = fr;
  123. medias = (
  124. );
  125. preference = {
  126. "length_unit_system" = 1;
  127. "weight_unit_system" = 1;
  128. };
  129. sharing = (
  130. );
  131. };
  132. };
  133. 5 = {
  134. id = 55f2de54dc16a0b5268b4567;
  135. "is_authorized_print" = 1;
  136. nickname = yoyo6;
  137. role = 2;
  138. user = {
  139. devices = (
  140. );
  141. email = "yoyo6@test.fr";
  142. firstname = yoyo6;
  143. id = 55f2c742dc16a0b4088b4570;
  144. kids = (
  145. );
  146. lastname = hagnere;
  147. locale = en;
  148. medias = (
  149. );
  150. preference = {
  151. "length_unit_system" = 1;
  152. "weight_unit_system" = 1;
  153. };
  154. sharing = (
  155. );
  156. };
  157. };
  158. 6 = {
  159. id = 55f2dea8dc16a0b5268b4568;
  160. "is_authorized_print" = 1;
  161. nickname = yoyo10;
  162. role = 2;
  163. user = {
  164. devices = (
  165. );
  166. email = "yoyo10@test.fr";
  167. firstname = yoyo10;
  168. id = 55f2cba3dc16a025078b456c;
  169. kids = (
  170. );
  171. lastname = hagnere;
  172. locale = en;
  173. medias = (
  174. );
  175. preference = {
  176. "length_unit_system" = 1;
  177. "weight_unit_system" = 1;
  178. };
  179. sharing = (
  180. );
  181. };
  182. };
  183. };
  184. videos = (
  185. );
  186. };
  187. product = "keed_stockage_10Go";
  188. productDetail = (
  189. {
  190. "created_at" = 1432939784;
  191. enabled = 1;
  192. id = "keed_stockage_50Go";
  193. name = "Stockage 50 Go";
  194. picture = "stockage_100.png";
  195. price = {
  196. amount = "99.98999999999999";
  197. currency = EUR;
  198. };
  199. "updated_at" = 1443201855;
  200. },
  201. {
  202. "created_at" = 1432939704;
  203. enabled = 1;
  204. id = "keed_stockage_10Go";
  205. name = "Stockage 5 Go";
  206. picture = "storage_10Go.png";
  207. price = {
  208. amount = "29.99";
  209. currency = EUR;
  210. };
  211. "updated_at" = 1441186825;
  212. },
  213. {
  214. "created_at" = 1432939741;
  215. enabled = 1;
  216. id = "keed_stockage_25Go";
  217. name = "Stockage 20 Go";
  218. price = {
  219. amount = "59.99";
  220. currency = EUR;
  221. };
  222. "updated_at" = 1441186839;
  223. }
  224. );
  225. type = stockage;
  226. weight = 0;
  227. }
  228. );
  229. "payment_method" = cb;
  230. status = 2;
  231. "total_exc" = 0;
  232. user = 55e9e507dc16a023498b4567;
  233. }
  234.  
  235. 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 {
  236. "Cache-Control" = "no-cache";
  237. Connection = "keep-alive";
  238. "Content-Type" = "application/json";
  239. Date = "Fri, 25 Sep 2015 18:15:36 GMT";
  240. Server = "nginx/1.8.0";
  241. "Transfer-Encoding" = Identity;
  242. "X-Powered-By" = "PHP/5.5.29-1+deb.sury.org~trusty+3";
  243. } }, 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)}
  244.  
  245. RESPONSE : <NSHTTPURLResponse: 0x12900f4f0> { URL: https://api.hellokeed.com/api/v1/shopping/orders } { status code: 400, headers {
  246. "Cache-Control" = "no-cache";
  247. Connection = "keep-alive";
  248. "Content-Type" = "application/json";
  249. Date = "Fri, 25 Sep 2015 18:15:36 GMT";
  250. Server = "nginx/1.8.0";
  251. "Transfer-Encoding" = Identity;
  252. "X-Powered-By" = "PHP/5.5.29-1+deb.sury.org~trusty+3";
  253. } }
  254.  
  255. {"code":400,"message":"Parameters missing"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement