Is it possible to generate a Box upload embed widget via the API? - box-api

I'd like to programmatically create Box.com upload embed widgets for specific folders for our account. It looks like it is possible to create a shared link: https://box-content.readme.io/#create-a-shared-link-for-a-folder
But I don't see any way do this in the API:
I've looked at the requests the above webpage is sending to create the widget and it looks like I could recreate them, but it would be nice to not have to rely on something that isn't documented. It doesn't look like the widget generation page is using the 2.0 API.

While it is not possible to create a Box Upload widget via the API you can create a Box Embed window via the API (check out the documentation here: https://developers.box.com/box-embed/)
This will give you an iframe that you can embed in your site for users to drag and drop content and upload to Box.

Related

How to convert a Chrome extension widget into a website?

I was reading this article on how to convert website into a google chrome extension [1] and I was wondering how could we achieve the oposite? Like imagine a chrome extension that is a widget where you can fill a form. How can we embed the extension into a website?
We use a private chrome extension that is just a "form" to create Jiras. So now we want to make that form into it's own website but wonder if there's a way to "embed" the current widget into a website so we don't have to maintain two repositories.
Any reference you can share?
[1] http://mytypings.com/converting-website-to-a-google-chrome-extension/
You can access your extension like website by going to chrome-extension://<extension-id>/<your popup page>.html
or use the Plasmo Framework to create Tab Pages you want.

Embeds in ThingsBoard Dashboards

I am just wondering if it is possible to create a Thingsboard dashbaord widget that contains custom HTML. Specifically, is it possible to embed other content in a dashboard using a custom widget of some sort?
My use case is that I want to embed a video or some other feed into the board (ref: Video feed to ThingsBoard dashboard) and I'm trying to find some alternatives.
Yes you can create your own widgets and yes you can write your own HTML, CSS and Javascript for those widgets.
Check out the Widgets Development Guide to get started.

How to use a Google Maps link to show a map?

I'm developing a website where the users can fill a textarea where besides various text, they can copy/paste a Google Maps link.
At the moment I'm able to recognize and catch those links, the next step would be to use them to show the corresponding map on another page.
The problem is that it seems that I can't use the link as generated by the Google Maps page, an example:
https://www.google.it/maps/place/Roma+RM/#41.9099856,12.3955722,11z/data=!3m1!4b1!4m5!3m4!1s0x132f6196f9928ebb:0xb90f770693656e38!8m2!3d41.9027835!4d12.4963655?hl=it&authuser=0, but also many other various formats depending on what the user was looking for (a specific place, directions...)
If I try to put this link into an iframe like
<iframe frameborder="0" src="<the_link_above>&zoom=17&key=MY_API_KEY"></iframe>
the map doesn't appear and looking into the browser's console I read Load denied by X-Frame-Options: <the above link> does not permit cross-origin framing.
A link which can be embedded has a different formatting, like https://www.google.it/maps/embed/v1/place?q=<an address>&zoom=17&key=MY_API_KEY
but I can't ask to the users to edit the link, they would just copy and paste what they get from Google as the website is not intended only for expert users, but for anyone.
Is there a method to use the link as generated by Google Maps or should I quit the idea to use it?

Can I use Google Drive's editor interface embed in a website?

I want to use google drive to store the files, but allow the users of my website to be able to edit them transparently, so that they don't have to go to google drive's website.
Is this possible with the current API? Thus far I have only seen how to create an app for them to install in google drive, or doing something like DrEdit (https://developers.google.com/drive/examples/), which parses the files to JSON and uses the ACE editor, which is definitely not what I want.
EDIT:
I believe it is not possible to do this with Google Drive, I've decided to go with Zoho Docs instead.
Yes it's possible. The biggest consideration is how much formatting you want to support. Eg. if it's plain text, it's very simple. If you want to support character or layout formatting, it becomes more complex.
I don't believe its possible to embed the editor (or even embed a preview!) using an iframe, because if you look at how the google docs page loads, it first redirects you to the login page, and that automatically logs you in if you are already logged in, and redirects you back to the docs editor.
This means that the iframe would have to at least pass through the login page, even if the user doesn't need to enter anything. However, google's login page has the x-frame-option header set to SAMEORIGIN (or deny?), and thus, the browser refuses to display it, and thus you can't actually get logged in!
The only way I've found to enable just preview embedding (not editing), is to publish the document first (via the File->publish to web menu item).

Documentation for getting Facebook feed stream on website?

Trying to integrate a Facebook page stream into an element for a website?
The Facebook Like Box has a "show stream" option that displays this data.
Be aware, it is against Facebook's policy to exactly copy any of it's features and use on your own site (as if emulating Facebook).
With that said, you need to grab this information manually using either the Graph API or FQL. There is no social plugin that can do this automatically.
You can check out the Graph API documentation here: https://developers.facebook.com/docs/reference/api/
You can test out some Graph API calls here:
https://developers.facebook.com/tools/explorer/
You can learn more about FQL here:
https://developers.facebook.com/docs/reference/fql/