-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Benoît Sauvère edited this page Aug 21, 2016
·
3 revisions
Unofficial SensCritique API
This Python package is automatically generated by the Swagger Codegen project:
- API version: 1.0.0
- Package version: 1.0.0
- Build date: 2016-08-21T19:23:57.215+02:00
- Build package: class io.swagger.codegen.languages.PythonClientCodegen
Python 2.7 and 3.4+
If the python package is hosted on Github, you can install directly from Github
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
)
Then import the package:
import swagger_client
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import swagger_client
Please follow the installation procedure and then run the following:
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.AuthenticationApi
body = swagger_client.AuthenticationRequest() # AuthenticationRequest | Authentication request parameters
try:
# Perform user authentication
api_response = api_instance.auth_login_post(body)
pprint(api_response)
except ApiException as e:
print "Exception when calling AuthenticationApi->auth_login_post: %s\n" % e
All URIs are relative to https://mobile-api.senscritique.com/
Class | Method | HTTP request | Description |
---|---|---|---|
AuthenticationApi | auth_login_post | POST /auth/login | Perform user authentication |
AuthenticationApi | auth_request_token_get | GET /auth/request_token | Request API token |
ListsApi | lists_list_id_get | GET /lists/{list_id} | Describe a list information (name, ...) |
ListsApi | lists_list_id_products_get | GET /lists/{list_id}/products | Get the products of a list |
ListsApi | lists_list_id_products_product_id_delete | DELETE /lists/{list_id}/products/{product_id}/ | Remove a product from a list |
ListsApi | lists_list_id_products_product_id_post | POST /lists/{list_id}/products/{product_id} | Add product to list |
ListsApi | lists_list_id_products_product_id_post_0 | POST /lists/{list_id}/products/{product_id}/ | Add a product in a list |
ListsApi | users_me_lists_post | POST /users/me/lists | Create a list for the given user |
ProductApi | products_product_id_rate_post | POST /products/{product_id}/rate | Rate a product |
ProductApi | users_user_id_products_wish_get | GET /users/{user_id}/products/wish | User wishes |
SearchApi | search_get | GET /search | Search products |
- AccessToken
- AuthenticationRequest
- Error
- List
- ListCreationResponse
- ListDescriptionResponse
- PaginatedProductListResponse
- PaginatedProductListResponsePaging
- Product
- ProductCurrentUserData
- RatingRequest
- RequestToken
- RequestTokenRequestToken
- SuccessStatusResponse
- User
All endpoints do not require authorization.