Endpoints
The Mediablob API 1.0 is based on xml.
While the original transport was only over SOAP, Mediablob now supports async posting of xml files over https. This method is much easier to use, and returns control faster to your application.
While there are no immediate plans to remove the legacy soap support, the async https transport is highly recommended for new api development.
HTTPS endpoints
There are two available endpoints; one for development and testing, and the other for production use.
Development:
https://api.test2.mediablob.com/api/xml
Production:
https://api.mediablob.com/api/xml
REST/HTTP Developer tools
Since the api supports standard http requests, it is easy to connect any environment to the api once you have your account details.
An effective way of testing the Mediablob integration is by using Chrome with the extension Talend API Tester.
Install the addon.
Open the new app from the upper right corner of Chrome.
Select the Method, i.e.
POST
and fill in the url to the endpointAdd an Authentication request header that conforms to the credentials provided by Shoppa, i.e
Authentication: Basic dXNlcm5hbWU6cGFzc3dvcmQ=
.Add a proper Content-Type request header that describes what content is provided in the request body, if any. i.e.
Content-Type: application/xml
.Fill in the request body, if needed. When submitting xml to the /api/xml enpoint, the content shall not be manually xml-encoded (something that was required when using SOAP).
Click
Send
to post the xml file to the endpoint.
Shoppa also provides C# source code for a sample application that uploads xml files to the api.
Legacy SOAP endpoints
There are two available endpoints; one for development and testing, and the other for production use.
Development:
http://ws.test2.mediablob.com/services/products.asmx
Production:
http://ws.mediablob.com/services/products.asmx
You can open the endpoint urls in a standard browser and read about the provided functions.
SOAP Developer tools
Since the api supports standard soap requests, it is easy to connect any environment to the api once you have your account details.
An effective way of testing the Mediablob integration is by using Chrome with the extension Wizdler.
Install the addon.
Browse to the wsdl-definition of the webserver at http://ws.test2.mediablob.com/services/products.asmx?WSDL.
Click on the Wizdler icon in the addons toolbar and select the function you want to call.
Rewrite the example content in the browser window.
Click
GO
to post the xml file to the service.Await the service response.
Shoppa also provides C# source code for a sample application that uploads xml files to the api.
How to use the endpoints properly
Use the development endpoint for development and integration testing. The test environments have additional data format validation that gives better developer feedback. By working in a testing sandbox, you ensure any errors can be detected without affecting production users.
Switch to the production endpoint when uploaded data shall be seen by the end users.
The environments can of course be used in parallel. Just understand that testing and production environments are completely separated.
Requesting user access
You will need a username and password to access any services in the Mediablob api. You also need to know your customer id(s) for many operations.
Accounts to the test and production environments are provided by the Shoppa Support Centre. Ask your Shoppa representative to request an account on your behalf.
Last updated