{"id":460,"date":"2023-12-04T12:23:15","date_gmt":"2023-12-04T12:23:15","guid":{"rendered":"https:\/\/olxdoc.wpenginepowered.com\/?p=460"},"modified":"2023-12-12T10:36:24","modified_gmt":"2023-12-12T10:36:24","slug":"get-image-from-collection","status":"publish","type":"post","link":"https:\/\/doc.olxgroup.com\/api\/?p=460","title":{"rendered":"Get image from collection"},"content":{"rendered":"\n\n\t<p><strong>GET<\/strong>: <a href=\"https:\/\/www.autovit.ro\/api\/open\/imageCollections\/:id\/images\/:imageId\">https:\/\/www.autovit.ro\/api\/open\/imageCollections\/:id\/images\/:imageId<\/a><\/p>\n<p><strong>Permission: <em>read<\/em><\/strong><\/p>\n<h2>Header<\/h2>\n<table>\n<thead>\n<tr>\n<th>Field<\/th>\n<th>Type<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>User-Agent<\/td>\n<td>string<\/td>\n<td>Account email.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Parameter<\/h2>\n<table>\n<thead>\n<tr>\n<th>Field<\/th>\n<th>Type<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>id<\/td>\n<td>Number<\/td>\n<td>Images collection id<\/td>\n<\/tr>\n<tr>\n<td>imageId<\/td>\n<td>Number<\/td>\n<td>Id of requested image<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n<strong class='bg-tag-blue font-bold tag'>Example request:<\/strong><code>GET \/imageCollections\/821165357\/images\/1 HTTP\/1.1\nUser-Agent: $USER_EMAIL\nContent-Type: application\/json\nAuthorization: Bearer $ACCESS_TOKEN<\/code><button onclick=\"copyJson('copy_36715')\">Copy<\/button>\nGET \/imageCollections\/821165357\/images\/1 HTTP\/1.1\nUser-Agent: $USER_EMAIL\nContent-Type: application\/json\nAuthorization: Bearer $ACCESS_TOKEN\nCopied to clipboard\n <strong class='text-green font-bold'>Success response:<\/strong><code>HTTP\/1.1 200 OK\n{\n    \"0\": \"http:\/\/lorempixel.com\/732\/488\/transport\/1\/\",\n    \"1\": \"http:\/\/lorempixel.com\/148\/110\/transport\/1\/\",\n    \"2\": \"http:\/\/lorempixel.com\/320\/240\/transport\/1\/\",\n    \"3\": \"http:\/\/lorempixel.com\/1080\/720\/transport\/1\/\"\n}<\/code><button onclick=\"copyJson('copy_30887')\">Copy<\/button>\nHTTP\/1.1 200 OK\n{\n    &#8220;0&#8221;: &#8220;http:\/\/lorempixel.com\/732\/488\/transport\/1\/&#8221;,\n    &#8220;1&#8221;: &#8220;http:\/\/lorempixel.com\/148\/110\/transport\/1\/&#8221;,\n    &#8220;2&#8221;: &#8220;http:\/\/lorempixel.com\/320\/240\/transport\/1\/&#8221;,\n    &#8220;3&#8221;: &#8220;http:\/\/lorempixel.com\/1080\/720\/transport\/1\/&#8221;\n}\nCopied to clipboard\n <strong class='text-red font-bold'>Error response example:<\/strong><code>HTTP\/1.1 404 Not Found\n{\n    \"error\":\n    {\n        \"type\": \"NotFoundException\",\n        \"message\": \"Resource not found\"\n    }\n}<\/code><button onclick=\"copyJson('copy_21451')\">Copy<\/button>\nHTTP\/1.1 404 Not Found\n{\n    &#8220;error&#8221;:\n    {\n        &#8220;type&#8221;: &#8220;NotFoundException&#8221;,\n        &#8220;message&#8221;: &#8220;Resource not found&#8221;\n    }\n}\nCopied to clipboard\n \n","protected":false},"excerpt":{"rendered":"<p>GET: https:\/\/www.autovit.ro\/api\/open\/imageCollections\/:id\/images\/:imageId Permission: read Header Field Type Description User-Agent string Account email. Parameter Field Type Description id Number Images collection id imageId Number Id of requested image Example request:GET \/imageCollections\/821165357\/images\/1 HTTP\/1.1 User-Agent: $USER_EMAIL Content-Type: application\/json Authorization: Bearer $ACCESS_TOKENCopy GET \/imageCollections\/821165357\/images\/1 HTTP\/1.1 User-Agent: $USER_EMAIL Content-Type: application\/json Authorization: Bearer $ACCESS_TOKEN Copied to clipboard Success response:HTTP\/1.1 200 OK&#8230;  <a href=\"https:\/\/doc.olxgroup.com\/api\/?p=460\" title=\"Read Get image from collection\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/460"}],"collection":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=460"}],"version-history":[{"count":0,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/460\/revisions"}],"wp:attachment":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=460"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=460"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=460"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}