CarParks API v1

API change history

CarParks_Entities

Get multiple types of objects matching the specified IDs. Note: you should use ETags to cache data in order to reduce requests to this endpoint

Try it

Request URL

Request headers

string

A unique identifier for the user making the request

(optional)
string
Media type of the body sent to the API.
string
Subscription key which provides access to this API. Found in your Profile.

Request body

{
  "carParkIds": [
    "string"
  ]
}
{
  "type": "object",
  "properties": {
    "carParkIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}
{
  "carParkIds": [
    "string"
  ]
}
{
  "type": "object",
  "properties": {
    "carParkIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}

Response 200

OK

{
  "Data": {
    "carParks": [
      {
        "carParkId ": "string",
        "address": {
          "street": "string",
          "postcode": "string",
          "city": "string",
          "country": "string"
        },
        "name": "string",
        "description": "string",
        "type": 0,
        "operatorDetails": {
          "type": 0,
          "name": "string",
          "telephone": "string",
          "website": "string",
          "paymentTelephone": "string",
          "paymentUrl": "string"
        },
        "otherInformation": "string",
        "bays": 0,
        "features": [
          {
            "name": "string",
            "value": "string"
          }
        ],
        "timesOfOperation": [
          {
            "rules": [
              {
                "applicableTime": {
                  "months": [
                    0
                  ],
                  "days": [
                    0
                  ],
                  "hours": [
                    {
                      "start": {},
                      "end": {}
                    }
                  ]
                },
                "parkingEntitlementTypeIds": [
                  0
                ],
                "maxStay": 0,
                "noReturn": 0
              }
            ],
            "tariffTables": [
              {
                "firstDate": {
                  "month": 0,
                  "day": 0
                },
                "lastDate": {
                  "month": 0,
                  "day": 0
                },
                "months": [
                  0
                ],
                "columns": [
                  {
                    "parkingEntitlementTypeIds": [
                      0
                    ]
                  }
                ],
                "dayGroups": [
                  {
                    "days": [
                      0
                    ],
                    "hourRangeGroups": [
                      {
                        "timeFrom": {},
                        "timeTo": {},
                        "cells": [
                          {
                            "details": [
                              {
                                "price": 0,
                                "surcharge": 0,
                                "upTo": 0,
                                "minimumPriceIncrement": 0,
                                "recurs": true,
                                "flatRateCrossesMidnight": true
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ],
        "reviews": [
          {
            "username": "string",
            "rating": 0.0,
            "dateAndTime": {},
            "description": "string"
          }
        ],
        "notes": [
          {
            "appliesToRestrictionTypeIds": [
              0
            ],
            "noteVisibilityTypeId": 0,
            "priority": 0,
            "title": "string",
            "message": "string",
            "url": "string",
            "telephone": "string"
          }
        ],
        "timeType": 0,
        "dataOriginId": "string",
        "PointLocation": {
          "coordinates": [
            0.0
          ],
          "type": "string",
          "crs": {
            "type": "string",
            "properties": {
              "name": "string"
            }
          },
          "properties": {}
        },
        "Location": {
          "lat": 0.0,
          "lon": 0.0
        },
        "id": "string",
        "eTag": "string"
      }
    ]
  }
}
{
  "type": "object",
  "properties": {
    "Data": {
      "type": "object",
      "properties": {
        "carParks": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "carParkId ": {
                "type": "string"
              },
              "address": {
                "type": "object",
                "properties": {
                  "street": {
                    "type": "string"
                  },
                  "postcode": {
                    "type": "string"
                  },
                  "city": {
                    "type": "string"
                  },
                  "country": {
                    "type": "string"
                  }
                }
              },
              "name": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "type": {
                "format": "int32",
                "type": "integer"
              },
              "operatorDetails": {
                "type": "object",
                "properties": {
                  "type": {
                    "format": "int32",
                    "type": "integer"
                  },
                  "name": {
                    "type": "string"
                  },
                  "telephone": {
                    "type": "string"
                  },
                  "website": {
                    "type": "string"
                  },
                  "paymentTelephone": {
                    "type": "string"
                  },
                  "paymentUrl": {
                    "type": "string"
                  }
                }
              },
              "otherInformation": {
                "type": "string"
              },
              "bays": {
                "format": "int32",
                "type": "integer"
              },
              "features": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    }
                  }
                }
              },
              "timesOfOperation": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "rules": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "applicableTime": {
                            "type": "object",
                            "properties": {
                              "months": {
                                "type": "array",
                                "items": {
                                  "format": "int32",
                                  "type": "integer"
                                }
                              },
                              "days": {
                                "type": "array",
                                "items": {
                                  "format": "int32",
                                  "type": "integer"
                                }
                              },
                              "hours": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "object"
                                    },
                                    "end": {
                                      "type": "object"
                                    }
                                  }
                                }
                              }
                            }
                          },
                          "parkingEntitlementTypeIds": {
                            "type": "array",
                            "items": {
                              "format": "int32",
                              "type": "integer"
                            }
                          },
                          "maxStay": {
                            "format": "int32",
                            "type": "integer"
                          },
                          "noReturn": {
                            "format": "int32",
                            "type": "integer"
                          }
                        }
                      }
                    },
                    "tariffTables": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "firstDate": {
                            "type": "object",
                            "properties": {
                              "month": {
                                "format": "int32",
                                "type": "integer"
                              },
                              "day": {
                                "format": "int32",
                                "type": "integer"
                              }
                            }
                          },
                          "lastDate": {
                            "type": "object",
                            "properties": {
                              "month": {
                                "format": "int32",
                                "type": "integer"
                              },
                              "day": {
                                "format": "int32",
                                "type": "integer"
                              }
                            }
                          },
                          "months": {
                            "type": "array",
                            "items": {
                              "format": "int32",
                              "type": "integer"
                            }
                          },
                          "columns": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "parkingEntitlementTypeIds": {
                                  "type": "array",
                                  "items": {
                                    "format": "int32",
                                    "type": "integer"
                                  }
                                }
                              }
                            }
                          },
                          "dayGroups": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "days": {
                                  "type": "array",
                                  "items": {
                                    "format": "int32",
                                    "type": "integer"
                                  }
                                },
                                "hourRangeGroups": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "timeFrom": {
                                        "type": "object"
                                      },
                                      "timeTo": {
                                        "type": "object"
                                      },
                                      "cells": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "details": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "price": {
                                                    "format": "int32",
                                                    "type": "integer"
                                                  },
                                                  "surcharge": {
                                                    "format": "int32",
                                                    "type": "integer"
                                                  },
                                                  "upTo": {
                                                    "format": "int32",
                                                    "type": "integer"
                                                  },
                                                  "minimumPriceIncrement": {
                                                    "format": "int32",
                                                    "type": "integer"
                                                  },
                                                  "recurs": {
                                                    "type": "boolean"
                                                  },
                                                  "flatRateCrossesMidnight": {
                                                    "type": "boolean"
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              },
              "reviews": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "username": {
                      "type": "string"
                    },
                    "rating": {
                      "format": "double",
                      "type": "number"
                    },
                    "dateAndTime": {
                      "type": "object"
                    },
                    "description": {
                      "type": "string"
                    }
                  }
                }
              },
              "notes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "appliesToRestrictionTypeIds": {
                      "type": "array",
                      "items": {
                        "format": "int32",
                        "type": "integer"
                      }
                    },
                    "noteVisibilityTypeId": {
                      "format": "int32",
                      "type": "integer"
                    },
                    "priority": {
                      "format": "int32",
                      "type": "integer"
                    },
                    "title": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string"
                    },
                    "telephone": {
                      "type": "string"
                    }
                  }
                }
              },
              "timeType": {
                "format": "int32",
                "type": "integer"
              },
              "dataOriginId": {
                "type": "string"
              },
              "PointLocation": {
                "type": "object",
                "properties": {
                  "coordinates": {
                    "type": "array",
                    "items": {
                      "format": "double",
                      "type": "number"
                    }
                  },
                  "type": {
                    "type": "string"
                  },
                  "crs": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string"
                      },
                      "properties": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "properties": {
                    "type": "object"
                  }
                }
              },
              "Location": {
                "type": "object",
                "properties": {
                  "lat": {
                    "format": "double",
                    "type": "number"
                  },
                  "lon": {
                    "format": "double",
                    "type": "number"
                  }
                }
              },
              "id": {
                "type": "string"
              },
              "eTag": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}
{
  "Data": {
    "carParks": [
      {
        "carParkId ": "string",
        "address": {
          "street": "string",
          "postcode": "string",
          "city": "string",
          "country": "string"
        },
        "name": "string",
        "description": "string",
        "type": 0,
        "operatorDetails": {
          "type": 0,
          "name": "string",
          "telephone": "string",
          "website": "string",
          "paymentTelephone": "string",
          "paymentUrl": "string"
        },
        "otherInformation": "string",
        "bays": 0,
        "features": [
          {
            "name": "string",
            "value": "string"
          }
        ],
        "timesOfOperation": [
          {
            "rules": [
              {
                "applicableTime": {
                  "months": [
                    0
                  ],
                  "days": [
                    0
                  ],
                  "hours": [
                    {
                      "start": {},
                      "end": {}
                    }
                  ]
                },
                "parkingEntitlementTypeIds": [
                  0
                ],
                "maxStay": 0,
                "noReturn": 0
              }
            ],
            "tariffTables": [
              {
                "firstDate": {
                  "month": 0,
                  "day": 0
                },
                "lastDate": {
                  "month": 0,
                  "day": 0
                },
                "months": [
                  0
                ],
                "columns": [
                  {
                    "parkingEntitlementTypeIds": [
                      0
                    ]
                  }
                ],
                "dayGroups": [
                  {
                    "days": [
                      0
                    ],
                    "hourRangeGroups": [
                      {
                        "timeFrom": {},
                        "timeTo": {},
                        "cells": [
                          {
                            "details": [
                              {
                                "price": 0,
                                "surcharge": 0,
                                "upTo": 0,
                                "minimumPriceIncrement": 0,
                                "recurs": true,
                                "flatRateCrossesMidnight": true
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ],
        "reviews": [
          {
            "username": "string",
            "rating": 0.0,
            "dateAndTime": {},
            "description": "string"
          }
        ],
        "notes": [
          {
            "appliesToRestrictionTypeIds": [
              0
            ],
            "noteVisibilityTypeId": 0,
            "priority": 0,
            "title": "string",
            "message": "string",
            "url": "string",
            "telephone": "string"
          }
        ],
        "timeType": 0,
        "dataOriginId": "string",
        "PointLocation": {
          "coordinates": [
            0.0
          ],
          "type": "string",
          "crs": {
            "type": "string",
            "properties": {
              "name": "string"
            }
          },
          "properties": {}
        },
        "Location": {
          "lat": 0.0,
          "lon": 0.0
        },
        "id": "string",
        "eTag": "string"
      }
    ]
  }
}
{
  "type": "object",
  "properties": {
    "Data": {
      "type": "object",
      "properties": {
        "carParks": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "carParkId ": {
                "type": "string"
              },
              "address": {
                "type": "object",
                "properties": {
                  "street": {
                    "type": "string"
                  },
                  "postcode": {
                    "type": "string"
                  },
                  "city": {
                    "type": "string"
                  },
                  "country": {
                    "type": "string"
                  }
                }
              },
              "name": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "type": {
                "format": "int32",
                "type": "integer"
              },
              "operatorDetails": {
                "type": "object",
                "properties": {
                  "type": {
                    "format": "int32",
                    "type": "integer"
                  },
                  "name": {
                    "type": "string"
                  },
                  "telephone": {
                    "type": "string"
                  },
                  "website": {
                    "type": "string"
                  },
                  "paymentTelephone": {
                    "type": "string"
                  },
                  "paymentUrl": {
                    "type": "string"
                  }
                }
              },
              "otherInformation": {
                "type": "string"
              },
              "bays": {
                "format": "int32",
                "type": "integer"
              },
              "features": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    }
                  }
                }
              },
              "timesOfOperation": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "rules": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "applicableTime": {
                            "type": "object",
                            "properties": {
                              "months": {
                                "type": "array",
                                "items": {
                                  "format": "int32",
                                  "type": "integer"
                                }
                              },
                              "days": {
                                "type": "array",
                                "items": {
                                  "format": "int32",
                                  "type": "integer"
                                }
                              },
                              "hours": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "object"
                                    },
                                    "end": {
                                      "type": "object"
                                    }
                                  }
                                }
                              }
                            }
                          },
                          "parkingEntitlementTypeIds": {
                            "type": "array",
                            "items": {
                              "format": "int32",
                              "type": "integer"
                            }
                          },
                          "maxStay": {
                            "format": "int32",
                            "type": "integer"
                          },
                          "noReturn": {
                            "format": "int32",
                            "type": "integer"
                          }
                        }
                      }
                    },
                    "tariffTables": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "firstDate": {
                            "type": "object",
                            "properties": {
                              "month": {
                                "format": "int32",
                                "type": "integer"
                              },
                              "day": {
                                "format": "int32",
                                "type": "integer"
                              }
                            }
                          },
                          "lastDate": {
                            "type": "object",
                            "properties": {
                              "month": {
                                "format": "int32",
                                "type": "integer"
                              },
                              "day": {
                                "format": "int32",
                                "type": "integer"
                              }
                            }
                          },
                          "months": {
                            "type": "array",
                            "items": {
                              "format": "int32",
                              "type": "integer"
                            }
                          },
                          "columns": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "parkingEntitlementTypeIds": {
                                  "type": "array",
                                  "items": {
                                    "format": "int32",
                                    "type": "integer"
                                  }
                                }
                              }
                            }
                          },
                          "dayGroups": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "days": {
                                  "type": "array",
                                  "items": {
                                    "format": "int32",
                                    "type": "integer"
                                  }
                                },
                                "hourRangeGroups": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "timeFrom": {
                                        "type": "object"
                                      },
                                      "timeTo": {
                                        "type": "object"
                                      },
                                      "cells": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "details": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "price": {
                                                    "format": "int32",
                                                    "type": "integer"
                                                  },
                                                  "surcharge": {
                                                    "format": "int32",
                                                    "type": "integer"
                                                  },
                                                  "upTo": {
                                                    "format": "int32",
                                                    "type": "integer"
                                                  },
                                                  "minimumPriceIncrement": {
                                                    "format": "int32",
                                                    "type": "integer"
                                                  },
                                                  "recurs": {
                                                    "type": "boolean"
                                                  },
                                                  "flatRateCrossesMidnight": {
                                                    "type": "boolean"
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              },
              "reviews": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "username": {
                      "type": "string"
                    },
                    "rating": {
                      "format": "double",
                      "type": "number"
                    },
                    "dateAndTime": {
                      "type": "object"
                    },
                    "description": {
                      "type": "string"
                    }
                  }
                }
              },
              "notes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "appliesToRestrictionTypeIds": {
                      "type": "array",
                      "items": {
                        "format": "int32",
                        "type": "integer"
                      }
                    },
                    "noteVisibilityTypeId": {
                      "format": "int32",
                      "type": "integer"
                    },
                    "priority": {
                      "format": "int32",
                      "type": "integer"
                    },
                    "title": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string"
                    },
                    "telephone": {
                      "type": "string"
                    }
                  }
                }
              },
              "timeType": {
                "format": "int32",
                "type": "integer"
              },
              "dataOriginId": {
                "type": "string"
              },
              "PointLocation": {
                "type": "object",
                "properties": {
                  "coordinates": {
                    "type": "array",
                    "items": {
                      "format": "double",
                      "type": "number"
                    }
                  },
                  "type": {
                    "type": "string"
                  },
                  "crs": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string"
                      },
                      "properties": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "properties": {
                    "type": "object"
                  }
                }
              },
              "Location": {
                "type": "object",
                "properties": {
                  "lat": {
                    "format": "double",
                    "type": "number"
                  },
                  "lon": {
                    "format": "double",
                    "type": "number"
                  }
                }
              },
              "id": {
                "type": "string"
              },
              "eTag": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}

Response 400

Response 401

Response 403

Rate limit or quota exceeded

{
  "StatusCode": 0,
  "Message": "string"
}
{
  "type": "object",
  "properties": {
    "StatusCode": {
      "format": "int32",
      "type": "integer"
    },
    "Message": {
      "description": "Indicates which quota has been exceeded and when it will be replenished",
      "type": "string"
    }
  }
}
{
  "StatusCode": 0,
  "Message": "string"
}
{
  "type": "object",
  "properties": {
    "StatusCode": {
      "format": "int32",
      "type": "integer"
    },
    "Message": {
      "description": "Indicates which quota has been exceeded and when it will be replenished",
      "type": "string"
    }
  }
}

Code samples

@ECHO OFF

curl -v -X POST "https://api.appyparking.com/carparks/v1/carparks/entities"
-H "X-User-Id: "
-H "Content-Type: application/json"
-H "Ocp-Apim-Subscription-Key: {subscription key}"

--data-ascii "{body}" 
using System;
using System.Net.Http.Headers;
using System.Text;
using System.Net.Http;
using System.Web;

namespace CSHttpClientSample
{
    static class Program
    {
        static void Main()
        {
            MakeRequest();
            Console.WriteLine("Hit ENTER to exit...");
            Console.ReadLine();
        }
        
        static async void MakeRequest()
        {
            var client = new HttpClient();
            var queryString = HttpUtility.ParseQueryString(string.Empty);

            // Request headers
            client.DefaultRequestHeaders.Add("X-User-Id", "");
            client.DefaultRequestHeaders.Add("Ocp-Apim-Subscription-Key", "{subscription key}");

            var uri = "https://api.appyparking.com/carparks/v1/carparks/entities?" + queryString;

            HttpResponseMessage response;

            // Request body
            byte[] byteData = Encoding.UTF8.GetBytes("{body}");

            using (var content = new ByteArrayContent(byteData))
            {
               content.Headers.ContentType = new MediaTypeHeaderValue("< your content type, i.e. application/json >");
               response = await client.PostAsync(uri, content);
            }

        }
    }
}	
// // This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
import java.net.URI;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.utils.URIBuilder;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;

public class JavaSample 
{
    public static void main(String[] args) 
    {
        HttpClient httpclient = HttpClients.createDefault();

        try
        {
            URIBuilder builder = new URIBuilder("https://api.appyparking.com/carparks/v1/carparks/entities");


            URI uri = builder.build();
            HttpPost request = new HttpPost(uri);
            request.setHeader("X-User-Id", "");
            request.setHeader("Content-Type", "application/json");
            request.setHeader("Ocp-Apim-Subscription-Key", "{subscription key}");


            // Request body
            StringEntity reqEntity = new StringEntity("{body}");
            request.setEntity(reqEntity);

            HttpResponse response = httpclient.execute(request);
            HttpEntity entity = response.getEntity();

            if (entity != null) 
            {
                System.out.println(EntityUtils.toString(entity));
            }
        }
        catch (Exception e)
        {
            System.out.println(e.getMessage());
        }
    }
}

<!DOCTYPE html>
<html>
<head>
    <title>JSSample</title>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
</head>
<body>

<script type="text/javascript">
    $(function() {
        var params = {
            // Request parameters
        };
      
        $.ajax({
            url: "https://api.appyparking.com/carparks/v1/carparks/entities?" + $.param(params),
            beforeSend: function(xhrObj){
                // Request headers
                xhrObj.setRequestHeader("X-User-Id","");
                xhrObj.setRequestHeader("Content-Type","application/json");
                xhrObj.setRequestHeader("Ocp-Apim-Subscription-Key","{subscription key}");
            },
            type: "POST",
            // Request body
            data: "{body}",
        })
        .done(function(data) {
            alert("success");
        })
        .fail(function() {
            alert("error");
        });
    });
</script>
</body>
</html>
#import <Foundation/Foundation.h>

int main(int argc, const char * argv[])
{
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    
    NSString* path = @"https://api.appyparking.com/carparks/v1/carparks/entities";
    NSArray* array = @[
                         // Request parameters
                         @"entities=true",
                      ];
    
    NSString* string = [array componentsJoinedByString:@"&"];
    path = [path stringByAppendingFormat:@"?%@", string];

    NSLog(@"%@", path);

    NSMutableURLRequest* _request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:path]];
    [_request setHTTPMethod:@"POST"];
    // Request headers
    [_request setValue:@"" forHTTPHeaderField:@"X-User-Id"];
    [_request setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
    [_request setValue:@"{subscription key}" forHTTPHeaderField:@"Ocp-Apim-Subscription-Key"];
    // Request body
    [_request setHTTPBody:[@"{body}" dataUsingEncoding:NSUTF8StringEncoding]];
    
    NSURLResponse *response = nil;
    NSError *error = nil;
    NSData* _connectionData = [NSURLConnection sendSynchronousRequest:_request returningResponse:&response error:&error];

    if (nil != error)
    {
        NSLog(@"Error: %@", error);
    }
    else
    {
        NSError* error = nil;
        NSMutableDictionary* json = nil;
        NSString* dataString = [[NSString alloc] initWithData:_connectionData encoding:NSUTF8StringEncoding];
        NSLog(@"%@", dataString);
        
        if (nil != _connectionData)
        {
            json = [NSJSONSerialization JSONObjectWithData:_connectionData options:NSJSONReadingMutableContainers error:&error];
        }
        
        if (error || !json)
        {
            NSLog(@"Could not parse loaded json with error:%@", error);
        }
        
        NSLog(@"%@", json);
        _connectionData = nil;
    }
    
    [pool drain];

    return 0;
}
<?php
// This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
require_once 'HTTP/Request2.php';

$request = new Http_Request2('https://api.appyparking.com/carparks/v1/carparks/entities');
$url = $request->getUrl();

$headers = array(
    // Request headers
    'X-User-Id' => '',
    'Content-Type' => 'application/json',
    'Ocp-Apim-Subscription-Key' => '{subscription key}',
);

$request->setHeader($headers);

$parameters = array(
    // Request parameters
);

$url->setQueryVariables($parameters);

$request->setMethod(HTTP_Request2::METHOD_POST);

// Request body
$request->setBody("{body}");

try
{
    $response = $request->send();
    echo $response->getBody();
}
catch (HttpException $ex)
{
    echo $ex;
}

?>
########### Python 2.7 #############
import httplib, urllib, base64

headers = {
    # Request headers
    'X-User-Id': '',
    'Content-Type': 'application/json',
    'Ocp-Apim-Subscription-Key': '{subscription key}',
}

params = urllib.urlencode({
})

try:
    conn = httplib.HTTPSConnection('api.appyparking.com')
    conn.request("POST", "/carparks/v1/carparks/entities?%s" % params, "{body}", headers)
    response = conn.getresponse()
    data = response.read()
    print(data)
    conn.close()
except Exception as e:
    print("[Errno {0}] {1}".format(e.errno, e.strerror))

####################################

########### Python 3.2 #############
import http.client, urllib.request, urllib.parse, urllib.error, base64

headers = {
    # Request headers
    'X-User-Id': '',
    'Content-Type': 'application/json',
    'Ocp-Apim-Subscription-Key': '{subscription key}',
}

params = urllib.parse.urlencode({
})

try:
    conn = http.client.HTTPSConnection('api.appyparking.com')
    conn.request("POST", "/carparks/v1/carparks/entities?%s" % params, "{body}", headers)
    response = conn.getresponse()
    data = response.read()
    print(data)
    conn.close()
except Exception as e:
    print("[Errno {0}] {1}".format(e.errno, e.strerror))

####################################
require 'net/http'

uri = URI('https://api.appyparking.com/carparks/v1/carparks/entities')


request = Net::HTTP::Post.new(uri.request_uri)
# Request headers
request['X-User-Id'] = ''
# Request headers
request['Content-Type'] = 'application/json'
# Request headers
request['Ocp-Apim-Subscription-Key'] = '{subscription key}'
# Request body
request.body = "{body}"

response = Net::HTTP.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http|
    http.request(request)
end

puts response.body