Quickstart

This guide will get you all set up and ready to use the Sleekshop API. We'll cover how to get started using one of our API clients and how to make your first API request. We'll also look at where to go next to find all the information you need to take full advantage of our powerful API.

Run In Postman

Choose your client

Before making your first API request, you need to pick which API client you will use. Sleekshop offers clients for PHP and JavaScript, and you can also use cURL for direct HTTP requests. Here's how to set up each client:

# cURL is most likely already installed on your machine
curl --version

Setting up your client

After installing your preferred client, you need to set it up with your API credentials.

# For cURL, you'll include your credentials with each request
# No setup needed

Making your first API request

Now you're ready to make your first call to the Sleekshop API. Let's try getting a new session:

POST
/srv/service/
curl https://demo.sleekshop.net/srv/service/ \
    -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \
    -d licence_password='s9vmrbwT23B7bmjR4Vmz' \
    -d request='get_new_session'

Here's another example that retrieves shop objects in a category:

POST
/srv/service/
curl https://demo.sleekshop.net/srv/service/ \
    -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \
    -d licence_password='s9vmrbwT23B7bmjR4Vmz' \
    -d request='get_shopobjects_in_category' \
    -d id_category=1 \
    -d needed_attributes='[["name","price"],["variations"]]' \
    -d language="de_DE"

What's next?

Great, you're now set up with an API client and have made your first requests to the API. Here are a few links that might be handy as you venture further into the Sleekshop API:

Was this page helpful?