Using Entitlement API with Lisp

<?xml encoding=”UTF-8″>By Madhukar Moogala

There is an introductory briefing on Entitlement API by Daniel.

For reading brevity, I will give simple statement what it brings to the table.

Entitlement API is a rest enabled API, allows you to check if the user is entitled to access your app i.e., user has bought the app from Autodesk App Store

We have examples on .NET, C++ and now on Lisp

.NET

Please check – https://github.com/MadhukarMoogala/Entitlement/blob/9ee757fefa9be4369a0503396b8dc1b774056182/ACAD_EntitilementApi/Plugin.cs#L36

C++

Please check

https://blog.autodesk.io/2020/07/10/using-entitlement-api-within-objectarx-c/

Lisp

For lisp we will be using IXMLHTTPRequest which provides client-side protocol support for communication with HTTP servers.

The members of the API can be found here

https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ms760305(v=vs.85)


<font size="2">(defun c:IsEntitled (/ http response)
(setq appId (getstring "Enter AppId "))
(setq userId (getvar "ONLINEUSERID"))
(setq url (strcat "https://apps.autodesk.com/webservices/checkentitlement?userid="
userId
"&appid="
appId
)
)
;https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ms759148(v=vs.85)
(if (setq http (vlax-create-object "MSXML2.XMLHTTP"))
(progn
(vlax-invoke-method http 'open "get" url :vlax-false)
(if
(not
(vl-catch-all-error-p (vl-catch-all-apply 'vlax-invoke (list http 'send)))
)
(setq response (vlax-get http 'responseText))
)
(vlax-release-object http)
)
)
(cond
((> (vl-string-search "true" response) 0) (princ "nTrue"))
(t (princ "nFalse"))
)
(princ)
);defun<br></font>

testLisp


Comments

21 responses to “Using Entitlement API with Lisp”

  1. The information you have posted is very useful.

  2. I would want to express my gratitude to you for penning such an engaging article on the subject. This has given me a lot to think about, and I am looking forward to reading more.

  3. That’s every detailed and easy for us to understand. Thanks

  4. JamesOneil Avatar
    JamesOneil

    I have been looking for articles on these topics
    for a long time. I don’t know how grateful you are for posting on this topic. Thank you for the numerous articles on this site, I will subscribe to those links in my bookmarks and visit them often.

  5. Finally I find API. I very much appreciate it. Thank you for this excellent article. Keep posting!

  6. Makayla Florance Avatar
    Makayla Florance

    An automatic use of the tool and technique is filed for the terms for the citizens. The component of the USDOT Permits is done for the joys. The margin is held for the terms. Rank is held for the vital paths for the choices for the ambit for the firm ideals in the team.

  7. I would like to appreciate the effort you have put into writing this blog. I hope you will have more quality articles in the near future.

  8. Thank you a great deal. Your post provided me with an abundance of knowledge, helping me to expand my horizons.

  9. I was searching for this API. It can also be used for gaming entertainment.

  10. I admire this informative article for its well-researched content and excellent wording. I was so engrossed in this material that I couldn’t stop reading. I am very impressed with your work and skills. Thank you very much.

  11. Thank you a great deal. Your post provided me with an abundance of knowledge, helping me to expand my horizons.

  12. Robert Arnold Avatar
    Robert Arnold

    As I am a computer science student I enjoyed reading the api topic so I have an advice for you keep this The Righteous Gemstones S3 Jesse Black Suit in your fashion collection if you want to look good.

  13. Irene Torres Avatar
    Irene Torres

    I got to use this entitlement api through your content which is very amazing. And thats why I am sharing this Destiny 2 Bungie Rewards Vow Of The Disciple Raid Jacket fashion dress with you which will be very helpful for you.

  14. Jennifer Connelly Avatar
    Jennifer Connelly

    Each jacket in our Heartland Jackets Collection is constructed to last. This collection includes everything you need, whether you’re searching for a versatile jacket to finish your regular outfit or a standout item to up your style.

  15. katherine wolf Avatar
    katherine wolf

    We are provide the best trending attire worldwide with free shipping and we have a vast collection of Barbie 2023 Outfits Collection you can get your favorite Barbie 2023 movie collection in best prices.

  16. christome Avatar
    christome

    You have shared a lot of list API’s I have read it I like it very much now I will suggest you to use this My Fault 2023 Ronnie Silver Bomber Jacket for this winter season.

  17. I’ve got it. It’s helpful much papa’s pizzeria game.

  18. mollyharboe Avatar
    mollyharboe

    I am a student of programming and I have taken good information about programming from your blog and this information has been very useful for me. Now I will tell you about this summer season, this href=”https://www.thejacketspot.com/product/ryan-reynolds-wrexham-canada-goose-hooded-jacket/”>Ryan Reynolds Wrexham Canada Goose Hooded Jacket will be the best.

  19. IF you looking yamaha ybz dx 125 price in pakistan today you must need to cheak mywheels.

  20. as a software eng i enjoyed and understand this. the best collection for hoodies check out: Pink Palm Puff 2025 Classic Puff Hoodie

  21. Great technical breakdown! The integration of the Entitlement API with LISP is incredibly useful for developers working with AutoCAD-based applications.

Leave a Reply to Irene TorresCancel reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading