Skip to content

Latest commit

 

History

History
64 lines (54 loc) · 1.85 KB

File metadata and controls

64 lines (54 loc) · 1.85 KB

Item Resources ( Deprecated )

GET items

Description

Returns a listing of items in the platform.

Requires authentication

  • Details described here

Parameters

  • locale (optional) - locale code for the items to display, reference response code here (sample: en-US), default base language of the project setting.
  • page (optional) - page number for pagination, default 1.
  • per_page (optional) - items to be returned per page, default 15.

Example

Request

GET https://plugin.api.onesky.io/1/projects/:project_id/items

Response

{
    "items": [
        {
            "id": 2986,
            "code": "post2",
            "translateables": {
                "title": "How localization help your business (2)?",
                "content": "This is an attractive title"
            },
            "created_at": "2013-03-03T03:03:03+0000",
            "created_at_timestamp": 1328475945,
            "language": {
                "code": "en-US",
                "english_name": "English (United States)",
                "local_name": "English (United States)",
                "locale": "en",
                "region" : "US"
            }
        },
        {
            "id": 2985,
            "code": "post1",
            "translateables": {
                "title": "How localization help your business (1)?",
                "content": "This is a very attractive title"
            },
            "created_at": "2013-03-03T03:03:03+0000",
            "created_at_timestamp": 1328475945,
            "language": {
                "code": "en-US",
                "english_name": "English (United States)",
                "local_name": "English (United States)",
                "locale": "en",
                "region" : "US"
            }
        }
    ]
}