Osclass Community Market Osclass Community Market Osclass Community Market
September 20, 2020, 12:42:39 am

News:

Osclass 3.9 released!


Json data

Started by Spider, June 02, 2020, 06:45:23 am

Previous topic - Next topic

Spider

Hi,

How can I get user item Id only in json?

Api https://github.com/carpanese/osc-api


https://www.domain.com/api/v1/item/53055

{
  "fk_i_item_id": "53055",
  "fk_c_country_code": "IN",
  "s_country": "India",
  "s_address": "",
  "s_zip": null,
  "fk_i_region_id": "781510",
  "s_region": "Maharashtra",
  "fk_i_city_id": "278320",
  "s_city": "Mumbai",
  "fk_i_city_area_id": null,
  "s_city_area": "",
  "d_coord_lat": null,
  "d_coord_long": null,
  "pk_i_id": "53055",
  "b_show_phone": "1",
  "fk_i_user_id": "30954",
  "fk_i_category_id": "73"}

rusnam

js: response.fk_i_item_id
php response->fk_i_item_id