• Resolved gokuale

    (@gokuale)


    Hello,
    thanks for this plugin, it’s awesome.

    I would like to ask you if there is an api documentation because this is my situation:

    i have external generator that create a license key, i would like to import it in your plugin and setting days for active license.
    I would like to link this license to an order because the external generator creates me a license code after an order is complete.

    it’s possible for your plugin to manage this?
    thanks a lot

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @gokuale,

    thanks for the input, I’m really happy that you find my plugin useful.

    Let me just break down your points to see if I understood your scenario correctly:

    • User purchases license on external site
    • External site makes an API request to the plugin
    • Plugin saves the license key and external order ID inside the database

    Please correct me if I misunderstood something. The API is currently in a small rework process, I am adapting the structure of the response and adding some more routes. That’s also why I have been delaying the API documentation. However, you can download the current Postman collection here:

    https://www.bebic.at/assets/lmfwc.postman_collection.json

    The response currently returns the object with the data, for example lmfwc/v1/licenses/{id} will return:

    
    {
        "id": "36",
        "order_id": null,
        "product_id": "28",
        "license_key": encrypted license key,
        "hash": hashed lciense key,
        "created_at": "2019-03-25 11:44:04",
        "expires_at": null,
        "valid_for": "120",
        "source": "2",
        "status": "3"
    }
    

    This will be changed, the requests will have the following format and all license keys will be sent out DECRYPTED instead of ENCRYPTED.

    
    {
        "success" => true,
        "data" => {
            "id": "36",
            "order_id": null,
            "product_id": "28",
            "license_key": decrypted license key,
            "created_at": "2019-03-25 11:44:04",
            "expires_at": null,
            "valid_for": "120",
            "source": "2",
            "status": "3"
        }
    }
    

    I’m closing this topic and marking it as solved, since it has been over a week without a reply.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘API documentation’ is closed to new replies.