Plugin Developer Discussion

Discussion for FogBugz Plugin developers

Can I get a "token" for the Web API from the Plugin API?

Hi,

I tried to use an ActionToken from the Plugin API with the hope of being able to simply pass it on to a Web API call, but alas I get "Not logged on". It was a long shot!

Is there any way of being able to get a token that works for the Web API from within the Plugin API that I can then pass on to my Web API using swf? It seems a bit of a waste to have to go through the Web API logon cmd to get a token when I already have a CPerson.

Also, is there a function I can call to get the absolute URL of the Web API handler (api.asp), and maybe its version details, without having to work out the base URL, grab api.xml, parse it, and then start calling the Web API?

Thanks,

Ian
Ian Jones Send private email
Thursday, May 14, 2009
 
 
I've opened cases for (1) getting a token and (2) exposing the XML API url / API metadata

(1) should be simple, (2) may be a tiny bit trickier but I'll see what I can do.
David Fullerton Send private email
Friday, May 15, 2009
 
 
Thanks David, much appreciated.
Ian Jones Send private email
Saturday, May 16, 2009
 
 
(1) has been implemented and will go out with the next release.
David Fullerton Send private email
Wednesday, May 20, 2009
 
 
With being able to get a valid token for the user to use via the Web API, and knowing the baseUrl as mentioned in another thread, we're pretty much set as it's dead easy to then grab baseUrl + "api.xml" to get the Web API config and start using it with a valid token.

Thanks for implementing these two features.
Ian Jones Send private email
Thursday, May 21, 2009
 
 
Great.  I'll hold off on (2) for now.
David Fullerton Send private email
Thursday, May 21, 2009
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz