MyRapidi
MyRapidi

Search our Wiki

REST API Link Storage Values Get Link Storage Values

Below you see an example of how to get a list of Link Storage values. Examples both in JSON and JSONAPI are provided.

NOTE: Remember to substitute the token (after Bearer) and the service id (the "[SERVICE ID]" below) to your own token and service id and your own link storage id instead of "1".

JSON:

curl
  -H "Authorization: Bearer [API SECURITY TOKEN]"
  -H "Content-Type: application/json" 
  -H "Accept: application/json"
  -X GET
  https://staging.myrapidi.com/api/v2/service/[SERVICE ID]/link_storages/1/values

The output for this example would be:

[
  {
    "id": "10",
    "key_1": "10000",
    "key_2": "00120000008igKE"
  },
   {
    "id": "11",
    "key_1": "20000",
    "key_2": "00120000009NSH1"
  },
   {
    "id": "12",
    "key_1": "30000",
    "key_2": "001D000001j9dnq"
  },
   {
    "id": "13",
    "key_1": "40000",
    "key_2": "0012000000bngWE1"
  },
   {
    "id": "14",
    "key_1": "50000",
    "key_2": "UYUYT87686876asda1"
  }
]

JSONAPI:

Get list of Link Storage Values:

curl 
  -H "Authorization: Bearer [API SECURITY TOKEN]"
  -H "Content-Type: application/vnd.api+json" 
  -H "Accept: application/vnd.api+json"
  -X GET
  https://staging.myrapidi.com/api/v2/service/[SERVICE ID]/link_storages/1/values

The output for this example would be:

{
  "data": [
    {
      "id": "10",  
      "type": "cdb_link_storage_values",
      "attributes": {
        "key_1": "10000",
        "key_2": "00120000008igKE"
      }  
    },
    {
      "id": "11",
      "type": "cdb_link_storage_values",
      "attributes": {
        "key_1": "20000",
        "key_2": "00120000009NSH1"
      }
    },
    {
      "id": "12",
      "type": "cdb_link_storage_values",
      "attributes": {
        "key_1": "30000",
        "key_2": "001D000001j9dnq"
      }
    },
    {
      "id": "13",
      "type": "cdb_link_storage_values",
      "attributes": {
        "key_1": "40000",
        "key_2": "00120000008igKE"
      }
    },
    {
      "id": "14",
      "type": "cdb_link_storage_values",
      "attributes": {
        "key_1": "50000",
        "key_2": "UYUYT87686876asda"
      }
    }
  ]
}