TeamDesk Knowledge Base & Support

   Home      FAQ      Forum      Idea Exchange      Ask a Question      My Stuff      Help   
  
Use HTMX to access TeamDesk API json data
HTMX is a cool approach to making your HTML interactive. You can use one of its extensions to pull json data from TeamDesk's REST API, as shown in this gist:

https://gist.github.com/RickCogley/d731e13eb2be2d9110f02adf559cb530

Of course since you're exposing your API access token in the HTML, this isn't a solution for anything where security is a concern. It's going to be best for something which is public anyway, and, you should limit the token's user to a specific role without risky permissions. Or, perhaps proxy the API call behind some webhook service which can hide your token but return the json you need.

Thanks Kirill for pointing me in the right direction on this.

ID
1956
Category
Integration/API
Author

Rick Cogley
Date Created
2/6/2023 4:12:46 AM
Date Updated
2/6/2023 5:56:20 PM
Status
New Idea
Score
20
Promoted By
Andrew@mytangowood.comRick Cogley
Comments
basenine 2/6/2023 4:55:19 AM
Thanks Rick
And Happy New Year to you and your family
😊
Rick Cogley 2/6/2023 5:56:20 PM
Thanks, same to you!
Feedback
 
Back to Search Results