API docs

77 views
Skip to first unread message

Adrià Casajús

unread,
Aug 6, 2014, 9:05:11 AM8/6/14
to mitr...@googlegroups.com
Hi there,

 Is there an API documentation on how to talk to mitro server? I'd love to try to make my own client :)

Cheers,
 Adri

Evan Jones

unread,
Aug 16, 2014, 3:25:24 PM8/16/14
to Adrià Casajús, mitr...@googlegroups.com
Unfortunately there is not. However, its pretty easy to watch the requests the extension makes using Chrome's debugger:

2. Make sure "Developer mode" is checked.
3. Click "Inspect views: background page" next to Mitro Login Manager
4. Click the network tab
5. Do something with Mitro. For example, click the popup, and click the Mitro logo in the lower left corner.

When I do this, I get ListMySecretsAndGroups in the Chrome debugger

Click on it, and copy the form data. This is the contents of the request. If you click the Response tab, you'll see the response from the server.

The structures that are sent and received are defined here:



The main server entry point is MitroServlet.doPost, which unwraps the first "outer" layer and ensures it is signed correctly, then calls the specific handler. This may help to understand how to correctly sign requests.



Let me know if you have any other questions,

Evan






--
You received this message because you are subscribed to the Google Groups "Mitro developers list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mitro-dev+...@googlegroups.com.
To post to this group, send email to mitr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mitro-dev/9f976dd7-3d01-4537-8d83-79d6a6e260a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Adrià Casajús

unread,
Aug 24, 2014, 6:39:09 AM8/24/14
to mitr...@googlegroups.com, ad...@ecm.ub.edu
That'll be more than enough :)

Cheers!
Reply all
Reply to author
Forward
0 new messages