Blogs / Lenful API Document

Lenful API Document

  • Last update

    2021-03-02 22:36

  • Tags API

API Reference

The Lenful API is organized around REST. Our API accepts JSON request payload and returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

BASE URL

https://api.lenful.com

Authentication

The API uses Access Token to authenticate requests. Authentication to the API is performed via Bearer Token. Your Access Token carry many privileges, so be sure to keep them secure! Do not share your secret Access Token in publicly accessible areas such as GitHub, client-side code, and so forth.

All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.

 
           var data = {
                username: YOUR_USERNAME,
                password: YOUR_PASSWORD,
                grant_type: 'password'
            };
            //--
            this.$axios({
                method: 'post',
                url: '/v1.0/login',
                crossdomain: true,
                data: querystring.stringify(data),
                headers: {
                    "Content-Type": "application/x-www-form-urlencoded",
                }
            })
                .then(function (response) {
                    //do somethingg
                })
                .catch(function (error) {
                    //do something
                });
                
Document updating...