Images

The images service supplies all images of given EANs which is available to the user you're connecting with. If no EANs supplied then all images available to the user are returned.

Request

REST

To use the images service, you need the access token from the authentication service.

URL: https://iqservice.stockbase-connect.com/stockbase/images/

Headers


                        Authentication: Access Token. (Guid)
                    

Method: GET

URL Params


                        ean=[EAN],...
                    

SOAP 1.1

To use the images service, you need the access token from the authentication service.

URL: https://iqservice.stockbase-connect.com/services/stockbase.asmx
WSDL: https://iqservice.stockbase-connect.com/services/stockbase.asmx?WSDL

Headers


                        Content-Type: text/xml
                    

Text


                        <?xml version="1.0" encoding="utf-8"?>
                        <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
                          <soap:Body>
                            <GetImages xmlns="https://iqservice.divide.nl/">
                              <token>guid</token>
                              <EANs>
                                <string>string</string>
                                <string>string</string>
                              </EANs>
                            </GetImages>
                          </soap:Body>
                        </soap:Envelope>
                    

SOAP 1.2

To use the images service, you need the access token from the authentication service.

URL: https://iqservice.stockbase-connect.com/services/stockbase.asmx
WSDL: https://iqservice.stockbase-connect.com/services/stockbase.asmx?WSDL

Headers


                        Content-Type: application/soap+xml
                    

Text


                        <?xml version="1.0" encoding="utf-8"?>
                        <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
                          <soap12:Body>
                            <GetImages xmlns="https://iqservice.divide.nl/">
                              <token>guid</token>
                              <EANs>
                                <string>string</string>
                                <string>string</string>
                              </EANs>
                            </GetImages>
                          </soap12:Body>
                        </soap12:Envelope>
                    

Library (VB.NET)

Function: Stockbase.GetImages

Parameters


                        Token: AuthenticationToken / RefreshToken (GUID)
                    

Library (PHP)

Example code

For client class instantiating, see the API documentation.


                            $divideIq = new DivideIQ($username, $password, $environment);
                            $result = $divideIq->request('stockbase_images');
                        

Response

Success


                        {
	                        "nl.divide.iq":
		                        {
			                        "description":"Divide.IQ",
			                        "version":"1.0",
			                        "build":"1.0.0",
			                        "url_asset":[],
			                        "settings_updated":1454418503,
			                        "response":
				                        {
					                        "answer":"Success",
					                        "content":
						                        {
							                        "Items":
								                        [
									                        {
										                        "EAN": EAN number,
										                        "Url": Image url
									                        },
                                                            ...
								                        ]
						                        }
				                        }
		                        }
                        }
                    

REST

Headers


                            Response Status: 200
                            Content-Type: text/html
                        

Text


                            <?xml version="1.0" encoding="utf-8"?>
                            <nl.divide.iq xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	                            <description>Divide.IQ</description>
	                            <version>1.0</version>
	                            <build>1.0.0</build>
	                            <url_asset />
	                            <settings_updated>1454418503</settings_updated>
	                            <response>
		                            <answer>Success</answer>
		                            <content xsi:type="xsd:string">
			                            <images xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
				                            <image ean="[EAN]" url="[URL]" />
			                            </images>
		                            </content>
	                            </response>
                            </nl.divide.iq>
                        

SOAP 1.1

Headers


                            Response Status: 200
                            Content-Type: text/xml
                        

Text


                            <?xml version="1.0" encoding="utf-8"?>
                            <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
                              <soap:Body>
                                <GetImagesResponse xmlns="https://iqservice.divide.nl/">
                                  <GetImagesResult>string</GetImagesResult>
                                </GetImagesResponse>
                              </soap:Body>
                            </soap:Envelope>
                        

SOAP 1.2

Headers


                            Response Status: 200
                            Content-Type: application/soap+xml
                        

Text


                            <?xml version="1.0" encoding="utf-8"?>
                            <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
                              <soap12:Body>
                                <GetImagesResponse xmlns="https://iqservice.divide.nl/">
                                  <GetImagesResult>string</GetImagesResult>
                                </GetImagesResponse>
                              </soap12:Body>
                            </soap12:Envelope>
                        

PHP

Headers


                            Response Status: 200
                            Content-Type: application/json
                        

Text


                            {}
                        

CredentialsEmpty

Headers


                    Response Status: 403
                    Content-Type: text/xml | application/json
                

Text


                    <?xml version="1.0" encoding="utf-16"?>
                    <nl.divide.iq xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                        <answer>LoginCredentialsEmpty</answer>
                    </nl.divide.iq>
                

LoginCredentialsNotValid

Headers


                    Response Status: 403
                    Content-Type: text/xml | application/json
                

Text


                    <?xml version="1.0" encoding="utf-16"?>
                    <nl.divide.iq xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                        <answer>LoginCredentialsNotValid</answer>
                    </nl.divide.iq>