Я пытаюсь интегрировать API shipengine, чтобы делать заказы через способ доставки
Мой запрос на отправку попадает на их сервер и соответствующий ответ на этот запрос выглядит следующим образом
{
"rate_response": {
"rates": [
{
"rate_id": "se-20653763",
"rate_type": "shipment",
"carrier_id": "se-341525",
"shipping_amount": {
"currency": "usd",
"amount": 0.47
},
"insurance_amount": {
"currency": "usd",
"amount": 0.00
},
"confirmation_amount": {
"currency": "usd",
"amount": 0.00
},
"other_amount": {
"currency": "usd",
"amount": 0.00
},
"zone": 3,
"package_type": "letter",
"delivery_days": 5,
"guaranteed_service": false,
"estimated_delivery_date": "2018-09-04T00:00:00Z",
"carrier_delivery_days": "3",
"ship_date": "2018-08-30T00:00:00Z",
"negotiated_rate": false,
"service_type": "USPS First Class Mail",
"service_code": "usps_first_class_mail",
"trackable": true,
"carrier_code": "stamps_com",
"carrier_nickname": "Free",
"carrier_friendly_name": "Stamps.com",
"validation_status": "valid",
"warning_messages": [],
"error_messages": []
},
{
"rate_id": "se-20653764",
"rate_type": "shipment",
"carrier_id": "se-341525",
"shipping_amount": {
"currency": "usd",
"amount": 1.00
},
"insurance_amount": {
"currency": "usd",
"amount": 0.00
},
"confirmation_amount": {
"currency": "usd",
"amount": 0.00
},
"other_amount": {
"currency": "usd",
"amount": 0.00
},
"zone": 3,
"package_type": "large_envelope_or_flat",
"delivery_days": 5,
"guaranteed_service": false,
"estimated_delivery_date": "2018-09-04T00:00:00Z",
"carrier_delivery_days": "3",
"ship_date": "2018-08-30T00:00:00Z",
"negotiated_rate": false,
"service_type": "USPS First Class Mail",
"service_code": "usps_first_class_mail",
"trackable": true,
"carrier_code": "stamps_com",
"carrier_nickname": "Free",
"carrier_friendly_name": "Stamps.com",
"validation_status": "valid",
"warning_messages": [],
"error_messages": []
},
{
"rate_id": "se-20653765",
"rate_type": "shipment",
"carrier_id": "se-341525",
"shipping_amount": {
"currency": "usd",
"amount": 2.66
},
"insurance_amount": {
"currency": "usd",
"amount": 0.00
},
"confirmation_amount": {
"currency": "usd",
"amount": 0.00
},
"other_amount": {
"currency": "usd",
"amount": 0.00
},
"zone": 3,
"package_type": "package",
"delivery_days": 5,
"guaranteed_service": false,
"estimated_delivery_date": "2018-09-04T00:00:00Z",
"carrier_delivery_days": "3",
"ship_date": "2018-08-30T00:00:00Z",
"negotiated_rate": false,
"service_type": "USPS First Class Mail",
"service_code": "usps_first_class_mail",
"trackable": true,
"carrier_code": "stamps_com",
"carrier_nickname": "Free",
"carrier_friendly_name": "Stamps.com",
"validation_status": "valid",
"warning_messages": [],
"error_messages": []
},
{
"rate_id": "se-20653766",
"rate_type": "shipment",
"carrier_id": "se-341525",
"shipping_amount": {
"currency": "usd",
"amount": 6.79
},
"insurance_amount": {
"currency": "usd",
"amount": 0.00
},
"confirmation_amount": {
"currency": "usd",
"amount": 0.00
},
"other_amount": {
"currency": "usd",
"amount": 0.00
},
"zone": 3,
"package_type": "package",
"delivery_days": 2,
"guaranteed_service": false,
"estimated_delivery_date": "2018-09-01T00:00:00Z",
"carrier_delivery_days": "2",
"ship_date": "2018-08-30T00:00:00Z",
"negotiated_rate": false,
"service_type": "USPS Priority Mail",
"service_code": "usps_priority_mail",
"trackable": true,
"carrier_code": "stamps_com",
"carrier_nickname": "Free",
"carrier_friendly_name": "Stamps.com",
"validation_status": "valid",
"warning_messages": [],
"error_messages": []
},
{
"rate_id": "se-20653767",
"rate_type": "shipment",
"carrier_id": "se-341525",
"shipping_amount": {
"currency": "usd",
"amount": 12.45
},
"insurance_amount": {
В консоли Firebase отображается только половина ответа JSON.
Я узнал, что shipengine предоставит файл ответов (23 КБ), но базовая база данных ограничена 4 КБ. Поэтому я не вижу своего полного ответа в консоли. Есть ли другой способ сделать это? Я хочу извлечь оценку из ответа.
Заранее спасибо.