Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

adskApp.userId and other user info when offline

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
carloquinonez
268 Views, 2 Replies

adskApp.userId and other user info when offline

Current events being what they are, I realized that adskApp.userName (in the JS API) returns "" when Fusion360 is offline. However, adskApp.userId returns a random looking string. Is there any documentation about user info when offline?


-CQ
2 REPLIES 2
Message 2 of 3
ekinsb
in reply to: carloquinonez

There's not documentation related to the API about difference in behavior between online and offline.  It would probably be nice to have but would take some testing to know.  The API is calling internal functions and we're getting whatever the behavior of these functions is so it's nothing something that's designed on the API side.

 

As far as user related information it looks like the only thing available is the userId.  It's the unique ID that's used to look up everything else so it makes sense that it's still available locally.  The userId isn't of much use to developers in most cases.  There is one important use though and that's the reason it is exposed.  The Autodesk App Store supports a web service where an app can query the store with the ID of the app and the user ID to verify that the user is a valid user for that app.  You can read more about that here.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
Message 3 of 3
carloquinonez
in reply to: ekinsb

OK, at least userId will always be available. Thanks Brian!


-CQ

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report