0

I successfully get a token with a logon, and then I try to make a new case request. Unfortunately that is the extent of the correct use of the API.

I am a low-level c++ developer - not an HTTP guy - I am at a loss about how I am supposed to proceed after the token is obtained.

I did the following:

Sending to URL: https://myaccount.fogbugz.com/api.asp?cmd=logon&email=tim@myaccount.com&password=password

Response: ?xml version="1.0" encoding="UTF-8"?>

Sending to URL: https://myaccount.fogbugz.com/api.asp?cmd=new?sTitle=Testing?sEvent=SomeContent&token=k6osplnkrqh6andvii5gacgd0sfqf2

Response: ?xml version="1.0" encoding="UTF-8"?>

Sending to URL: https://myaccount.fogbugz.com/api.asp?cmd=logoff&token=k6osplnkrqh6andvii5gacgd0sfqf2

Response: ?xml version="1.0" encoding="UTF-8"?>

What am I doing wrong? I don't see any cases created.

I am also unsure about what the proper way to send file attachments and long text is - surely this is not all just put in the url?

I am using C++ and curl. This all has to be done programmatically from our app.

Thanks

EDIT

META [ AHHHRRRGG!!!

How do I show the xml responses on this platform. SE is great, except it is brain dead if I try to show a server response... ]

flag

1 Answer

2

You have some '?'s where you should have '&'s between "new" and "sTitle" and between "Testing" and "sEvent":

https://myaccount.fogbugz.com/api.asp?cmd=new&sTitle=Testing&sEvent=SomeContent&token=k6osplnkrqh6andvii5gacgd0sfqf2

link|flag
doh! i will check that out – Tim Dec 22 2010 at 23:43
thanks - it's like magic when you fix a stupid typo... – Tim Dec 23 2010 at 0:19
Also, for future reference, the next version of FogBugz will report a "No such API command" error in situations like this rather than just returning an empty XML document. – db Dec 23 2010 at 13:44

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.