Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×

API advice - design for Google Maps auto-import?

All, I'm a veteran webapp developer, considering upgrading my roll20 subscription so I can use the API. The one thing that I really want to build is integration with Google Maps for my near-future cyberpunk campaign. I think that I could develop my own API script to work with Google Maps; but, it seems to me like there are some roadblocks in the roll20 API - namely that I can't upload images. Here is what I envisioned: ExternalClient->GoogleMaps: get image ExternalClient->Roll20: auth (using my auth info) ExternalClient->Roll20: upload image to library Roll20->ExternalClient: reference to the graphic object (GUID) ExternalClient->Roll20: create a new page in my campaign Roll20->ExternalClient: new page GUID returned ExternalClient->Roll20: set new page size & scale ExternalClient->Roll20: add graphic object to the page (set map layer) It seems to me like the roll20 API doesn't support this type of interaction. Assuming this won't work, I'm looking for suggestions on alternate approaches to the problem. For example, can I manipulate the DOM in the user's browser to show the image directly? It's not clear to me from the docs whether I can do this using the API. Does the script run in the user's browser, or on the server (using Node or whatever)? Can I add script tags to the roll20 game page? Suggestions welcome. Thanks, -Russ
1401296643
Sam M.
Pro
Sheet Author
If you can't access externally from the API, you might have to do everything before the second to last step yourself and the last two steps in the API :/
1401301973
Lithl
Pro
Sheet Author
API Scripter
A RESTful API is on the roadmap, but not implemented yet. Whether that would allow you to achieve your goal is beyond "up in the air," as there isn't even an interface design for it yet (as far as we know). Also, Roll20 objects use Firebase's unique ids, not GUIDs or UUIDs.