Autor Zpráva
Bits
Profil *
Zdravím všechny, prosím vás, potřebuji poradit jak dostat prvek label_url z tohoto výstupu, všem díky moc. Je zvýrazněný v kódu


{
  "id": "order_b39d44e7059a46c8a787174e8320bf1c",
  "mode": "test",
  "reference": null,
  "is_return": false,
  "options": {"currency": "USD","label_date": null},
  "messages": [],
  "created_at": "2016-02-17T02:51:04Z",
  "updated_at": "2016-02-17T02:51:04Z",
  "customs_info": null,
  "to_address": { ... },
  "from_address": { ... },
  "buyer_address": { ... },
  "return_address": { ... },
  "items": [],
  "containers": [],
  "shipments": [
    {
      "id": "shp_7a387659db374a8ea197d7bba3009d5d",
      "created_at": "2016-02-17T02:51:04Z",
      "updated_at": "2016-02-17T02:51:10Z",
      "is_return": false,
      "messages": [],
      "mode": "test",
      "options": {"currency": "USD", "label_date": null},
      "reference": null,
      "status": "unknown",
      "tracking_code": null,
      "batch_id": null,
      "batch_status": null,
      "batch_message": null,
      "parcel": {
        "id": "prcl_071994637e1046ab98a79f96d8b26488",
        "object": "Parcel",
        "length": 20.2,
        "width": 10.9,
        "height": 5.0,
        "predefined_package": null,
        "weight": 17.5,
        "created_at": "2013-04-22T05:39:57Z",
        "updated_at": "2013-04-22T05:39:57Z"
      },
      "customs_info": null,
      "to_address": { ... },
      "from_address": { ... },
      "buyer_address": { ... },
      "return_address": { ... },
      "postage_label": {
        "id": "pl_317098e591fc4d0bbc94bf5e7e47668f",
        "object": "PostageLabel",
        "created_at": "2016-02-17T03:10:30Z",
        "updated_at": "2016-02-17T03:10:30Z",
        "date_advance": 0,
        "integrated_form": "none",
        "label_date": "2016-02-17T03:00:16Z",
        "label_resolution": 200,
        "label_size": "PAPER_4X6",
        "label_type": "default",
        "label_url": "http://assets.geteasypost.com/postage_labels/labels/20160217/5205d36225364da686e2ba8476b565a9.png",
        "label_file_type": "image/png",
        "label_pdf_url": null,
        "label_epl2_url": null,
        "label_zpl_url": null
      },
      "rates": [
        {
          "id": "rate_1f168714581b40af965dd740ddf35f69",
          "object": "Rate",
          "created_at": null,
          "updated_at": null,
          "mode": "test",
          "service": "PRIORITY_OVERNIGHT",
          "carrier": "FedEx",
          "rate": "47.36",
          "currency": "USD",
          "retail_rate": null,
          "retail_currency": null,
          "list_rate": null,
          "list_currency": null,
          "delivery_days": 1,
          "delivery_date": "2016-02-18T10:30:00Z",
          "delivery_date_guaranteed": true,
          "est_delivery_days": null,
          "shipment_id": "shp_b701a9da21424a5f85a09530c9f924aa",
          "carrier_account_id": "ca_f02596dcabbb46a8ba823280efc277bb"
        },
        {
          "id": "rate_1567998062c445ab909daf872461d15e",
          "object": "Rate",
          "created_at": null,
          "updated_at": null,
          "mode": "test",
          "service": "STANDARD_OVERNIGHT",
          "carrier": "FedEx",
          "rate": "118.00",
          "currency": "USD",
          "retail_rate": null,
          "retail_currency": null,
          "list_rate": null,
          "list_currency": null,
          "delivery_days": 1,
          "delivery_date": "2016-02-18T15:00:00Z",
          "delivery_date_guaranteed": true,
          "est_delivery_days": null,
          "shipment_id": "shp_b701a9da21424a5f85a09530c9f924aa",
          "carrier_account_id": "ca_f02596dcabbb46a8ba823280efc277bb"
        },
        {
          "id": "rate_f9a9706f99754609a60b2ec512e82cbf",
          "object": "Rate",
          "created_at": null,
          "updated_at": null,
          "mode": "test",
          "service": "FEDEX_GROUND",
          "carrier": "FedEx",
          "rate": "17.96",
          "currency": "USD",
          "retail_rate": null,
          "retail_currency": null,
          "list_rate": null,
          "list_currency": null,
          "delivery_days": 4,
          "delivery_date": null,
          "delivery_date_guaranteed": false,
          "est_delivery_days": null,
          "shipment_id": "shp_b701a9da21424a5f85a09530c9f924aa",
          "carrier_account_id": "ca_f02596dcabbb46a8ba823280efc277bb"
        },
      ],
      "refund_status": null,
      "scan_form": null,
      "selected_rate": null,
      "tracker": null,
      "forms": [],
      "fees": [],
      "object": "Shipment"
    },
    {
      "id": "shp_b25c22b64a7f45bd859e826d3701471c",
      "created_at": "2016-02-17T02:51:04Z",
      "updated_at": "2016-02-17T02:51:10Z",
      "is_return": false,
      "messages": [],
      "mode": "test",
      "options": {"currency": "USD", "label_date": null},
      "reference": null,
      "status": "unknown",
      "tracking_code": null,
      "batch_id": null,
      "batch_status": null,
      "batch_message": null,
      "parcel": {
        "id": "prcl_307ea2f3486544e58d5496fc840f6376",
        "object": "Parcel",
        "length": 7.2,
        "width": 1.9,
        "height": 1.0,
        "predefined_package": null,
        "weight": 10.8,
        "created_at": "2013-04-22T05:39:57Z",
        "updated_at": "2013-04-22T05:39:57Z"
      },
      "customs_info": null,
      "to_address": { ... },
      "from_address": { ... },
      "buyer_address": { ... },
      "return_address": { ... },
      "postage_label": {
        "id": "pl_1a118b22c63f4bf9825437c01f6f9f38",
        "object": "PostageLabel",
        "created_at": "2016-02-17T03:10:32Z",
        "updated_at": "2016-02-17T03:10:32Z",
        "date_advance": 0,
        "integrated_form": "none",
        "label_date": "2016-02-17T03:00:16Z",
        "label_resolution": 200,
        "label_size": "PAPER_4X6",
        "label_type": "default",
        "label_url": "http://assets.geteasypost.com/postage_labels/labels/20160217/788f130b67f34a92b65b8b6f5c17e792.png",
        "label_file_type": "image/png",
        "label_pdf_url": null,
        "label_epl2_url": null,
        "label_zpl_url": null
      },
      "rates": [],
      "refund_status": null,
      "scan_form": null,
      "selected_rate": null,
      "tracker": null,
      "forms": [],
      "fees": [],
      "object": "Shipment"
    },
  ],
  "rates": [
    {
      "id": "rate_1f168714581b40af965dd740ddf35f69",
      "object": "Rate",
      "created_at": null,
      "updated_at": null,
      "mode": "test",
      "service": "PRIORITY_OVERNIGHT",
      "carrier": "FedEx",
      "rate": "47.36",
      "currency": "USD",
      "retail_rate": null,
      "retail_currency": null,
      "list_rate": null,
      "list_currency": null,
      "delivery_days": 1,
      "delivery_date": "2016-02-18T10:30:00Z",
      "delivery_date_guaranteed": true,
      "est_delivery_days": null,
      "shipment_id": "shp_7a387659db374a8ea197d7bba3009d5d",
      "carrier_account_id": "ca_f02596dcabbb46a8ba823280efc277bb"
    },
    {
      "id": "rate_1567998062c445ab909daf872461d15e",
      "object": "Rate",
      "created_at": null,
      "updated_at": null,
      "mode": "test",
      "service": "STANDARD_OVERNIGHT",
      "carrier": "FedEx",
      "rate": "118.00",
      "currency": "USD",
      "retail_rate": null,
      "retail_currency": null,
      "list_rate": null,
      "list_currency": null,
      "delivery_days": 1,
      "delivery_date": "2016-02-18T15:00:00Z",
      "delivery_date_guaranteed": true,
      "est_delivery_days": null,
      "shipment_id": "shp_7a387659db374a8ea197d7bba3009d5d",
      "carrier_account_id": "ca_f02596dcabbb46a8ba823280efc277bb"
    },
    {
      "id": "rate_f9a9706f99754609a60b2ec512e82cbf",
      "object": "Rate",
      "created_at": null,
      "updated_at": null,
      "mode": "test",
      "service": "FEDEX_GROUND",
      "carrier": "FedEx",
      "rate": "17.96",
      "currency": "USD",
      "retail_rate": null,
      "retail_currency": null,
      "list_rate": null,
      "list_currency": null,
      "delivery_days": 4,
      "delivery_date": null,
      "delivery_date_guaranteed": false,
      "est_delivery_days": null,
      "shipment_id": "shp_7a387659db374a8ea197d7bba3009d5d",
      "carrier_account_id": "ca_f02596dcabbb46a8ba823280efc277bb"
    },
  ],
  "object": "Order"
}


{
  "id": "order_b39d44e7059a46c8a787174e8320bf1c",
  "mode": "test",
  "reference": null,
  "is_return": false,
  "options": {"currency": "usd","label_date": null},
  "messages": [],
  "created_at": "2016-02-17t02:51:04z",
  "updated_at": "2016-02-17t02:51:04z",
  "customs_info": null,
  "to_address": { ... },
  "from_address": { ... },
  "buyer_address": { ... },
  "return_address": { ... },
  "items": [],
  "containers": [],
  "shipments": [
    {
      "id": "shp_7a387659db374a8ea197d7bba3009d5d",
      "created_at": "2016-02-17t02:51:04z",
      "updated_at": "2016-02-17t02:51:10z",
      "is_return": false,
      "messages": [],
      "mode": "test",
      "options": {"currency": "usd", "label_date": null},
      "reference": null,
      "status": "unknown",
      "tracking_code": null,
      "batch_id": null,
      "batch_status": null,
      "batch_message": null,
      "parcel": {
        "id": "prcl_071994637e1046ab98a79f96d8b26488",
        "object": "parcel",
        "length": 20.2,
        "width": 10.9,
        "height": 5.0,
        "predefined_package": null,
        "weight": 17.5,
        "created_at": "2013-04-22t05:39:57z",
        "updated_at": "2013-04-22t05:39:57z"
      },
      "customs_info": null,
      "to_address": { ... },
      "from_address": { ... },
      "buyer_address": { ... },
      "return_address": { ... },
      "postage_label": {
        "id": "pl_317098e591fc4d0bbc94bf5e7e47668f",
        "object": "postagelabel",
        "created_at": "2016-02-17t03:10:30z",
        "updated_at": "2016-02-17t03:10:30z",
        "date_advance": 0,
        "integrated_form": "none",
        "label_date": "2016-02-17t03:00:16z",
        "label_resolution": 200,
        "label_size": "paper_4x6",
        "label_type": "default",
        "label_url": "http://assets.geteasypost.com/postage_labels/labels/20160217/5205d36225364da686e2ba8476b565a9.png",
        "label_file_type": "image/png",
        "label_pdf_url": null,
        "label_epl2_url": null,
        "label_zpl_url": null
      },
      "rates": [
        {
          "id": "rate_1f168714581b40af965dd740ddf35f69",
          "object": "rate",
          "created_at": null,
          "updated_at": null,
          "mode": "test",
          "service": "priority_overnight",
          "carrier": "fedex",
          "rate": "47.36",
          "currency": "usd",
          "retail_rate": null,
          "retail_currency": null,
          "list_rate": null,
          "list_currency": null,
          "delivery_days": 1,
          "delivery_date": "2016-02-18t10:30:00z",
          "delivery_date_guaranteed": true,
          "est_delivery_days": null,
          "shipment_id": "shp_b701a9da21424a5f85a09530c9f924aa",
          "carrier_account_id": "ca_f02596dcabbb46a8ba823280efc277bb"
        },
        {
          "id": "rate_1567998062c445ab909daf872461d15e",
          "object": "rate",
          "created_at": null,
          "updated_at": null,
          "mode": "test",
          "service": "standard_overnight",
          "carrier": "fedex",
          "rate": "118.00",
          "currency": "usd",
          "retail_rate": null,
          "retail_currency": null,
          "list_rate": null,
          "list_currency": null,
          "delivery_days": 1,
          "delivery_date": "2016-02-18t15:00:00z",
          "delivery_date_guaranteed": true,
          "est_delivery_days": null,
          "shipment_id": "shp_b701a9da21424a5f85a09530c9f924aa",
          "carrier_account_id": "ca_f02596dcabbb46a8ba823280efc277bb"
        },
        {
          "id": "rate_f9a9706f99754609a60b2ec512e82cbf",
          "object": "rate",
          "created_at": null,
          "updated_at": null,
          "mode": "test",
          "service": "fedex_ground",
          "carrier": "fedex",
          "rate": "17.96",
          "currency": "usd",
          "retail_rate": null,
          "retail_currency": null,
          "list_rate": null,
          "list_currency": null,
          "delivery_days": 4,
          "delivery_date": null,
          "delivery_date_guaranteed": false,
          "est_delivery_days": null,
          "shipment_id": "shp_b701a9da21424a5f85a09530c9f924aa",
          "carrier_account_id": "ca_f02596dcabbb46a8ba823280efc277bb"
        },
      ],
      "refund_status": null,
      "scan_form": null,
      "selected_rate": null,
      "tracker": null,
      "forms": [],
      "fees": [],
      "object": "shipment"
    },
    {
      "id": "shp_b25c22b64a7f45bd859e826d3701471c",
      "created_at": "2016-02-17t02:51:04z",
      "updated_at": "2016-02-17t02:51:10z",
      "is_return": false,
      "messages": [],
      "mode": "test",
      "options": {"currency": "usd", "label_date": null},
      "reference": null,
      "status": "unknown",
      "tracking_code": null,
      "batch_id": null,
      "batch_status": null,
      "batch_message": null,
      "parcel": {
        "id": "prcl_307ea2f3486544e58d5496fc840f6376",
        "object": "parcel",
        "length": 7.2,
        "width": 1.9,
        "height": 1.0,
        "predefined_package": null,
        "weight": 10.8,
        "created_at": "2013-04-22t05:39:57z",
        "updated_at": "2013-04-22t05:39:57z"
      },
      "customs_info": null,
      "to_address": { ... },
      "from_address": { ... },
      "buyer_address": { ... },
      "return_address": { ... },
      "postage_label": {
        "id": "pl_1a118b22c63f4bf9825437c01f6f9f38",
        "object": "postagelabel",
        "created_at": "2016-02-17t03:10:32z",
        "updated_at": "2016-02-17t03:10:32z",
        "date_advance": 0,
        "integrated_form": "none",
        "label_date": "2016-02-17t03:00:16z",
        "label_resolution": 200,
        "label_size": "paper_4x6",
        "label_type": "default",
        "label_url": "http://assets.geteasypost.com/postage_labels/labels/20160217/788f130b67f34a92b65b8b6f5c17e792.png",
        "label_file_type": "image/png",
        "label_pdf_url": null,
        "label_epl2_url": null,
        "label_zpl_url": null
      },
      "rates": [],
      "refund_status": null,
      "scan_form": null,
      "selected_rate": null,
      "tracker": null,
      "forms": [],
      "fees": [],
      "object": "shipment"
    },
  ],
  "rates": [
    {
      "id": "rate_1f168714581b40af965dd740ddf35f69",
      "object": "rate",
      "created_at": null,
      "updated_at": null,
      "mode": "test",
      "service": "priority_overnight",
      "carrier": "fedex",
      "rate": "47.36",
      "currency": "usd",
      "retail_rate": null,
      "retail_currency": null,
      "list_rate": null,
      "list_currency": null,
      "delivery_days": 1,
      "delivery_date": "2016-02-18t10:30:00z",
      "delivery_date_guaranteed": true,
      "est_delivery_days": null,
      "shipment_id": "shp_7a387659db374a8ea197d7bba3009d5d",
      "carrier_account_id": "ca_f02596dcabbb46a8ba823280efc277bb"
    },
    {
      "id": "rate_1567998062c445ab909daf872461d15e",
      "object": "rate",
      "created_at": null,
      "updated_at": null,
      "mode": "test",
      "service": "standard_overnight",
      "carrier": "fedex",
      "rate": "118.00",
      "currency": "usd",
      "retail_rate": null,
      "retail_currency": null,
      "list_rate": null,
      "list_currency": null,
      "delivery_days": 1,
      "delivery_date": "2016-02-18t15:00:00z",
      "delivery_date_guaranteed": true,
      "est_delivery_days": null,
      "shipment_id": "shp_7a387659db374a8ea197d7bba3009d5d",
      "carrier_account_id": "ca_f02596dcabbb46a8ba823280efc277bb"
    },
    {
      "id": "rate_f9a9706f99754609a60b2ec512e82cbf",
      "object": "rate",
      "created_at": null,
      "updated_at": null,
      "mode": "test",
      "service": "fedex_ground",
      "carrier": "fedex",
      "rate": "17.96",
      "currency": "usd",
      "retail_rate": null,
      "retail_currency": null,
      "list_rate": null,
      "list_currency": null,
      "delivery_days": 4,
      "delivery_date": null,
      "delivery_date_guaranteed": false,
      "est_delivery_days": null,
      "shipment_id": "shp_7a387659db374a8ea197d7bba3009d5d",
      "carrier_account_id": "ca_f02596dcabbb46a8ba823280efc277bb"
    },
  ],
  "object": "order"
}



{
  "id": "order_b39d44e7059a46c8a787174e8320bf1c",
  "mode": "test",
  "reference": null,
  "is_return": false,
  "options": {"currency": "usd","label_date": null},
  "messages": [],
  "created_at": "2016-02-17t02:51:04z",
  "updated_at": "2016-02-17t02:51:04z",
  "customs_info": null,
  "to_address": { ... },
  "from_address": { ... },
  "buyer_address": { ... },
  "return_address": { ... },
  "items": [],
  "containers": [],
  "shipments": [
    {
      "id": "shp_7a387659db374a8ea197d7bba3009d5d",
      "created_at": "2016-02-17t02:51:04z",
      "updated_at": "2016-02-17t02:51:10z",
      "is_return": false,
      "messages": [],
      "mode": "test",
      "options": {"currency": "usd", "label_date": null},
      "reference": null,
      "status": "unknown",
      "tracking_code": null,
      "batch_id": null,
      "batch_status": null,
      "batch_message": null,
      "parcel": {
        "id": "prcl_071994637e1046ab98a79f96d8b26488",
        "object": "parcel",
        "length": 20.2,
        "width": 10.9,
        "height": 5.0,
        "predefined_package": null,
        "weight": 17.5,
        "created_at": "2013-04-22t05:39:57z",
        "updated_at": "2013-04-22t05:39:57z"
      },
      "customs_info": null,
      "to_address": { ... },
      "from_address": { ... },
      "buyer_address": { ... },
      "return_address": { ... },
      "postage_label": {
        "id": "pl_317098e591fc4d0bbc94bf5e7e47668f",
        "object": "postagelabel",
        "created_at": "2016-02-17t03:10:30z",
        "updated_at": "2016-02-17t03:10:30z",
        "date_advance": 0,
        "integrated_form": "none",
        "label_date": "2016-02-17t03:00:16z",
        "label_resolution": 200,
        "label_size": "paper_4x6",
        "label_type": "default",
        "label_url": "http://assets.geteasypost.com/postage_labels/labels/20160217/5205d36225364da686e2ba8476b565a9.png",
        "label_file_type": "image/png",
        "label_pdf_url": null,
        "label_epl2_url": null,
        "label_zpl_url": null
      },
      "rates": [
        {
          "id": "rate_1f168714581b40af965dd740ddf35f69",
          "object": "rate",
          "created_at": null,
          "updated_at": null,
          "mode": "test",
          "service": "priority_overnight",
          "carrier": "fedex",
          "rate": "47.36",
          "currency": "usd",
          "retail_rate": null,
          "retail_currency": null,
          "list_rate": null,
          "list_currency": null,
          "delivery_days": 1,
          "delivery_date": "2016-02-18t10:30:00z",
          "delivery_date_guaranteed": true,
          "est_delivery_days": null,
          "shipment_id": "shp_b701a9da21424a5f85a09530c9f924aa",
          "carrier_account_id": "ca_f02596dcabbb46a8ba823280efc277bb"
        },
        {
          "id": "rate_1567998062c445ab909daf872461d15e",
          "object": "rate",
          "created_at": null,
          "updated_at": null,
          "mode": "test",
          "service": "standard_overnight",
          "carrier": "fedex",
          "rate": "118.00",
          "currency": "usd",
          "retail_rate": null,
          "retail_currency": null,
          "list_rate": null,
          "list_currency": null,
          "delivery_days": 1,
          "delivery_date": "2016-02-18t15:00:00z",
          "delivery_date_guaranteed": true,
          "est_delivery_days": null,
          "shipment_id": "shp_b701a9da21424a5f85a09530c9f924aa",
          "carrier_account_id": "ca_f02596dcabbb46a8ba823280efc277bb"
        },
        {
          "id": "rate_f9a9706f99754609a60b2ec512e82cbf",
          "object": "rate",
          "created_at": null,
          "updated_at": null,
          "mode": "test",
          "service": "fedex_ground",
          "carrier": "fedex",
          "rate": "17.96",
          "currency": "usd",
          "retail_rate": null,
          "retail_currency": null,
          "list_rate": null,
          "list_currency": null,
          "delivery_days": 4,
          "delivery_date": null,
          "delivery_date_guaranteed": false,
          "est_delivery_days": null,
          "shipment_id": "shp_b701a9da21424a5f85a09530c9f924aa",
          "carrier_account_id": "ca_f02596dcabbb46a8ba823280efc277bb"
        },
      ],
      "refund_status": null,
      "scan_form": null,
      "selected_rate": null,
      "tracker": null,
      "forms": [],
      "fees": [],
      "object": "shipment"
    },
    {
      "id": "shp_b25c22b64a7f45bd859e826d3701471c",
      "created_at": "2016-02-17t02:51:04z",
      "updated_at": "2016-02-17t02:51:10z",
      "is_return": false,
      "messages": [],
      "mode": "test",
      "options": {"currency": "usd", "label_date": null},
      "reference": null,
      "status": "unknown",
      "tracking_code": null,
      "batch_id": null,
      "batch_status": null,
      "batch_message": null,
      "parcel": {
        "id": "prcl_307ea2f3486544e58d5496fc840f6376",
        "object": "parcel",
        "length": 7.2,
        "width": 1.9,
        "height": 1.0,
        "predefined_package": null,
        "weight": 10.8,
        "created_at": "2013-04-22t05:39:57z",
        "updated_at": "2013-04-22t05:39:57z"
      },
      "customs_info": null,
      "to_address": { ... },
      "from_address": { ... },
      "buyer_address": { ... },
      "return_address": { ... },
      "postage_label": {
        "id": "pl_1a118b22c63f4bf9825437c01f6f9f38",
        "object": "postagelabel",
        "created_at": "2016-02-17t03:10:32z",
        "updated_at": "2016-02-17t03:10:32z",
        "date_advance": 0,
        "integrated_form": "none",
        "label_date": "2016-02-17t03:00:16z",
        "label_resolution": 200,
        "label_size": "paper_4x6",
        "label_type": "default",
        "label_url": "http://assets.geteasypost.com/postage_labels/labels/20160217/788f130b67f34a92b65b8b6f5c17e792.png",
        "label_file_type": "image/png",
        "label_pdf_url": null,
        "label_epl2_url": null,
        "label_zpl_url": null
      },
      "rates": [],
      "refund_status": null,
      "scan_form": null,
      "selected_rate": null,
      "tracker": null,
      "forms": [],
      "fees": [],
      "object": "shipment"
    },
  ],
  "rates": [
    {
      "id": "rate_1f168714581b40af965dd740ddf35f69",
      "object": "rate",
      "created_at": null,
      "updated_at": null,
      "mode": "test",
      "service": "priority_overnight",
      "carrier": "fedex",
      "rate": "47.36",
      "currency": "usd",
      "retail_rate": null,
      "retail_currency": null,
      "list_rate": null,
      "list_currency": null,
      "delivery_days": 1,
      "delivery_date": "2016-02-18t10:30:00z",
      "delivery_date_guaranteed": true,
      "est_delivery_days": null,
      "shipment_id": "shp_7a387659db374a8ea197d7bba3009d5d",
      "carrier_account_id": "ca_f02596dcabbb46a8ba823280efc277bb"
    },
    {
      "id": "rate_1567998062c445ab909daf872461d15e",
      "object": "rate",
      "created_at": null,
      "updated_at": null,
      "mode": "test",
      "service": "standard_overnight",
      "carrier": "fedex",
      "rate": "118.00",
      "currency": "usd",
      "retail_rate": null,
      "retail_currency": null,
      "list_rate": null,
      "list_currency": null,
      "delivery_days": 1,
      "delivery_date": "2016-02-18t15:00:00z",
      "delivery_date_guaranteed": true,
      "est_delivery_days": null,
      "shipment_id": "shp_7a387659db374a8ea197d7bba3009d5d",
      "carrier_account_id": "ca_f02596dcabbb46a8ba823280efc277bb"
    },
    {
      "id": "rate_f9a9706f99754609a60b2ec512e82cbf",
      "object": "rate",
      "created_at": null,
      "updated_at": null,
      "mode": "test",
      "service": "fedex_ground",
      "carrier": "fedex",
      "rate": "17.96",
      "currency": "usd",
      "retail_rate": null,
      "retail_currency": null,
      "list_rate": null,
      "list_currency": null,
      "delivery_days": 4,
      "delivery_date": null,
      "delivery_date_guaranteed": false,
      "est_delivery_days": null,
      "shipment_id": "shp_7a387659db374a8ea197d7bba3009d5d",
      "carrier_account_id": "ca_f02596dcabbb46a8ba823280efc277bb"
    },
  ],
  "object": "order"
}



{
  "id": "order_b39d44e7059a46c8a787174e8320bf1c",
  "mode": "test",
  "reference": null,
  "is_return": false,
  "options": {"currency": "usd","label_date": null},
  "messages": [],
  "created_at": "2016-02-17t02:51:04z",
  "updated_at": "2016-02-17t02:51:04z",
  "customs_info": null,
  "to_address": { ... },
  "from_address": { ... },
  "buyer_address": { ... },
  "return_address": { ... },
  "items": [],
  "containers": [],
  "shipments": [
    {
      "id": "shp_7a387659db374a8ea197d7bba3009d5d",
      "created_at": "2016-02-17t02:51:04z",
      "updated_at": "2016-02-17t02:51:10z",
      "is_return": false,
      "messages": [],
      "mode": "test",
      "options": {"currency": "usd", "label_date": null},
      "reference": null,
      "status": "unknown",
      "tracking_code": null,
      "batch_id": null,
      "batch_status": null,
      "batch_message": null,
      "parcel": {
        "id": "prcl_071994637e1046ab98a79f96d8b26488",
        "object": "parcel",
        "length": 20.2,
        "width": 10.9,
        "height": 5.0,
        "predefined_package": null,
        "weight": 17.5,
        "created_at": "2013-04-22t05:39:57z",
        "updated_at": "2013-04-22t05:39:57z"
      },
      "customs_info": null,
      "to_address": { ... },
      "from_address": { ... },
      "buyer_address": { ... },
      "return_address": { ... },
      "postage_label": {
        "id": "pl_317098e591fc4d0bbc94bf5e7e47668f",
        "object": "postagelabel",
        "created_at": "2016-02-17t03:10:30z",
        "updated_at": "2016-02-17t03:10:30z",
        "date_advance": 0,
        "integrated_form": "none",
        "label_date": "2016-02-17t03:00:16z",
        "label_resolution": 200,
        "label_size": "paper_4x6",
        "label_type": "default",
        "label_url": "http://assets.geteasypost.com/postage_labels/labels/20160217/5205d36225364da686e2ba8476b565a9.png",
        "label_file_type": "image/png",
        "label_pdf_url": null,
        "label_epl2_url": null,
        "label_zpl_url": null
      },
      "rates": [
        {
          "id": "rate_1f168714581b40af965dd740ddf35f69",
          "object": "rate",
          "created_at": null,
          "updated_at": null,
          "mode": "test",
          "service": "priority_overnight",
          "carrier": "fedex",
          "rate": "47.36",
          "currency": "usd",
          "retail_rate": null,
          "retail_currency": null,
          "list_rate": null,
          "list_currency": null,
          "delivery_days": 1,
          "delivery_date": "2016-02-18t10:30:00z",
          "delivery_date_guaranteed": true,
          "est_delivery_days": null,
          "shipment_id": "shp_b701a9da21424a5f85a09530c9f924aa",
          "carrier_account_id": "ca_f02596dcabbb46a8ba823280efc277bb"
        },
        {
          "id": "rate_1567998062c445ab909daf872461d15e",
          "object": "rate",
          "created_at": null,
          "updated_at": null,
          "mode": "test",
          "service": "standard_overnight",
          "carrier": "fedex",
          "rate": "118.00",
          "currency": "usd",
          "retail_rate": null,
          "retail_currency": null,
          "list_rate": null,
          "list_currency": null,
          "delivery_days": 1,
          "delivery_date": "2016-02-18t15:00:00z",
          "delivery_date_guaranteed": true,
          "est_delivery_days": null,
          "shipment_id": "shp_b701a9da21424a5f85a09530c9f924aa",
          "carrier_account_id": "ca_f02596dcabbb46a8ba823280efc277bb"
        },
        {
          "id": "rate_f9a9706f99754609a60b2ec512e82cbf",
          "object": "rate",
          "created_at": null,
          "updated_at": null,
          "mode": "test",
          "service": "fedex_ground",
          "carrier": "fedex",
          "rate": "17.96",
          "currency": "usd",
          "retail_rate": null,
          "retail_currency": null,
          "list_rate": null,
          "list_currency": null,
          "delivery_days": 4,
          "delivery_date": null,
          "delivery_date_guaranteed": false,
          "est_delivery_days": null,
          "shipment_id": "shp_b701a9da21424a5f85a09530c9f924aa",
          "carrier_account_id": "ca_f02596dcabbb46a8ba823280efc277bb"
        },
      ],
      "refund_status": null,
      "scan_form": null,
      "selected_rate": null,
      "tracker": null,
      "forms": [],
      "fees": [],
      "object": "shipment"
    },
    {
      "id": "shp_b25c22b64a7f45bd859e826d3701471c",
      "created_at": "2016-02-17t02:51:04z",
      "updated_at": "2016-02-17t02:51:10z",
      "is_return": false,
      "messages": [],
      "mode": "test",
      "options": {"currency": "usd", "label_date": null},
      "reference": null,
      "status": "unknown",
      "tracking_code": null,
      "batch_id": null,
      "batch_status": null,
      "batch_message": null,
      "parcel": {
        "id": "prcl_307ea2f3486544e58d5496fc840f6376",
        "object": "parcel",
        "length": 7.2,
        "width": 1.9,
        "height": 1.0,
        "predefined_package": null,
        "weight": 10.8,
        "created_at": "2013-04-22t05:39:57z",
        "updated_at": "2013-04-22t05:39:57z"
      },
      "customs_info": null,
      "to_address": { ... },
      "from_address": { ... },
      "buyer_address": { ... },
      "return_address": { ... },
      "postage_label": {
        "id": "pl_1a118b22c63f4bf9825437c01f6f9f38",
        "object": "postagelabel",
        "created_at": "2016-02-17t03:10:32z",
        "updated_at": "2016-02-17t03:10:32z",
        "date_advance": 0,
        "integrated_form": "none",
        "label_date": "2016-02-17t03:00:16z",
        "label_resolution": 200,
        "label_size": "paper_4x6",
        "label_type": "default",
        "label_url": "http://assets.geteasypost.com/postage_labels/labels/20160217/788f130b67f34a92b65b8b6f5c17e792.png",
        "label_file_type": "image/png",
        "label_pdf_url": null,
        "label_epl2_url": null,
        "label_zpl_url": null
      },
      "rates": [],
      "refund_status": null,
      "scan_form": null,
      "selected_rate": null,
      "tracker": null,
      "forms": [],
      "fees": [],
      "object": "shipment"
    },
  ],
  "rates": [
    {
      "id": "rate_1f168714581b40af965dd740ddf35f69",
      "object": "rate",
      "created_at": null,
      "updated_at": null,
      "mode": "test",
      "service": "priority_overnight",
      "carrier": "fedex",
      "rate": "47.36",
      "currency": "usd",
      "retail_rate": null,
      "retail_currency": null,
      "list_rate": null,
      "list_currency": null,
      "delivery_days": 1,
      "delivery_date": "2016-02-18t10:30:00z",
      "delivery_date_guaranteed": true,
      "est_delivery_days": null,
      "shipment_id": "shp_7a387659db374a8ea197d7bba3009d5d",
      "carrier_account_id": "ca_f02596dcabbb46a8ba823280efc277bb"
    },
    {
      "id": "rate_1567998062c445ab909daf872461d15e",
      "object": "rate",
      "created_at": null,
      "updated_at": null,
      "mode": "test",
      "service": "standard_overnight",
      "carrier": "fedex",
      "rate": "118.00",
      "currency": "usd",
      "retail_rate": null,
      "retail_currency": null,
      "list_rate": null,
      "list_currency": null,
      "delivery_days": 1,
      "delivery_date": "2016-02-18t15:00:00z",
      "delivery_date_guaranteed": true,
      "est_delivery_days": null,
      "shipment_id": "shp_7a387659db374a8ea197d7bba3009d5d",
      "carrier_account_id": "ca_f02596dcabbb46a8ba823280efc277bb"
    },
    {
      "id": "rate_f9a9706f99754609a60b2ec512e82cbf",
      "object": "rate",
      "created_at": null,
      "updated_at": null,
      "mode": "test",
      "service": "fedex_ground",
      "carrier": "fedex",
      "rate": "17.96",
      "currency": "usd",
      "retail_rate": null,
      "retail_currency": null,
      "list_rate": null,
      "list_currency": null,
      "delivery_days": 4,
      "delivery_date": null,
      "delivery_date_guaranteed": false,
      "est_delivery_days": null,
      "shipment_id": "shp_7a387659db374a8ea197d7bba3009d5d",
      "carrier_account_id": "ca_f02596dcabbb46a8ba823280efc277bb"
    },
  ],
  "object": "order"
}
juriad
Profil
Jde o formát dat JSON. Takže v JS jde o nativní objekt, v PHP použij funkci json_decode. Zvýrazněnou položku najdeš dotazem:

$data['shipments'][0]['postage_label']['label_url']
Bits
Profil *
juriad:
DĚKUJU MOCKRÁT !! Funguje parádně :) ... jen dodám že je nutno parametr true pro json_decode jinak nefunguje :)
json_decode($jsonArr,true);
Ještě jednou díky.

Vaše odpověď


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm: