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
В таком формате получаю все списки по GET запросу: | |
http://api.checena.ru:80/v1/shopping_lists.json?detailed=1 | |
{ | |
"id": "534ce9ea61646d7c8d020000", | |
"updated_at": 1397549546, | |
"title": "23", | |
"items_count": 1, | |
"total_price": { | |
"cents": 0, | |
"currency": "RUB" |
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
Поменял количество товара с 1 на 4, в ответ "We're sorry, but something went wrong (500)" | |
[ | |
{ | |
"changing_state" : "changed", | |
"id" : "534ce9ea61646d7c8d020000", | |
"total_price" : { | |
"cents" : 0, | |
"currency" : "RUB" | |
}, | |
"updated_at" : 1397550435, |
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
В личном кабинете создал новый список, затем из приложения отправляю пустой json, но в ответ тишина) По задумке должен был получить все что изменилось на сайте. | |
[ | |
] | |
2014-04-15 12:48:45.559 FairPrice[4628:907] JSON answer: | |
( | |
) |
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
в ответ "We're sorry, but something went wrong (500)", то же самое при добавлении товаров в избранное | |
[ | |
{ | |
"changing_state" : "changed", | |
"id" : "favorite", | |
"total_price" : { | |
"cents" : 0, | |
"currency" : null | |
}, |
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
Создал свой товар "samolet" с количеством = 5 | |
[ | |
{ | |
"changing_state" : "changed", | |
"id" : "534e7a0f61646d7ba8000000", | |
"total_price" : { | |
"cents" : 0, | |
"currency" : "RUB" | |
}, |
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
{ | |
"id": "favorite", | |
"title": "Избранные продукты", | |
"items_count": 1, | |
"items": [ | |
null | |
] | |
} |
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
[ | |
{ | |
"changing_state" : "changed", | |
"id" : "favorite", | |
"total_price" : { | |
"cents" : 0, | |
"currency" : null | |
}, | |
"updated_at" : 1397818406, | |
"items" : [ |
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
Есть Json | |
EasyMapping не может нормально показать price в sale_points_prices, ну думаю посмотрю как NSDictionary покажет | |
Написал такую штуку: | |
NSDictionary* prices = [JSON objectForKey:@"prices"]; | |
NSDictionary* sale_points_prices = [prices objectForKey:@"sale_points_prices"]; | |
//до этого момента все хорошо | |
NSDictionary* price = [sale_points_prices objectForKey:@"price"]; | |
//тут отваливается |
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
"items": [ | |
{ | |
"id": "53109e389a8187981b8b4596", | |
"title": "Вермут Martini Rosato (Мартини Розато) сладкий розовый 15%", | |
"count": 1, | |
"products_list_id": "527f4990dd435003038b45bd", | |
"stricken": false, | |
"updated_at": 1397817317, | |
"product": { | |
"id": 53157, |
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
{ | |
"id": 53157, | |
"name": "Вермут Martini Rosato (Мартини Розато) сладкий розовый 15%", | |
"description": "Производитель: Мартини и Росси С.п.А., Италия. Имп: ООО Бакарди Рус, Россия.\r\n\r\nВермут Martini Rosato (Мартини Розато) сладкий розовый 15% 0,5л.\r\nСостав: вино, сахар, спирт этиловый ректификованный из пищевого сырья,\r\nнастои ароматических растений.\r\nПищевая ценность: Углеводы - 17г; Калорийность - 150ккал.\r\nОтсутствуют биологически активные добавки, а также компоненты,\r\nполученные с использованием генно - модифицированных организмов.\r\nПродукт содержит пищевую добавку - консервант, диоксид серы.\r\nСоответствует требованиям норм безопасности.\r\nНаслаждайтесь ответственно!\r\nЧрезмерное употребление алкоголя вредит Вашему здоровью.\r\nАлкоголь противопоказан детям и подросткам в возрасте до 18 лет,\r\nбеременным и кормящим женщинам, водителям транспортных средств, лицам с\r\nзаболеваниями центральной нервной системы.\r\nХранить при температуре от 5`С до 20`С и относительной влажности не\r\ |
OlderNewer