How to add picture BY URL using Gmail API (Chrome extension) - api

I write Chrome extension and need to add a picture in the mail by URL(in js). I can't find how to do that in Gmail API documentation. The only link I found is this, but don`t understand how to use it( add picture icon add by link

Related

Expo shared link is not clickable

I've been trying to create mechanism for my Expo app, that will allow users to share content of app (so I basically need linking with params, and I think I know how to do it, according to docs).
I wanted to start creating this mechanism with simple sharing, without params (just clickable link that opens app). Here's my code (executed when user presses share button):
share = async () => {
await Share.share({
message: Linking.makeUrl()
})
}
It shares link as excepted (I tried it on messenger), but shared link is not clickable. I also tried using exp://192.168.100.3:190000 that points to my PC in the same LAN (I coped that from http://localhost:19002/), where metro bundler is running, and copying Tunnel link - neither of those worked, link is just a plain text, and if user clicks on it nothing happens. But, when I scan QR code, from http://localhost:19002/ (metro bundler page) application opens as excepted.
You're doing everything just fine!
The reason why a shared link is not clickable in some apps is simply because of the mechanisms of the other apps for "detecting" links from plain text and "linkifying" them.
You see, these links are actually "deep links" (custom URL schemes).
Here's an example. If I share this link: exp://192.168.100.3:190000 over Slack, it becomes "clickable", because it looks like Slack has a mechanism to detect these custom "deep links" which lead to a mobile app:
If I share the same link over Messanger, it outputs it as a plain text. This is because Messanger doesn't have a mechanism to detect these "deep links".
In order for the link to "click", it must be rendered in an anchor tag. Messenger simply linkifies only "known" web links (http://, https://...), not custom ones.
The QR code reader in your case opens your deep link, because it has a mechanism to detect "deep links".
So, if you want a reliable way for making your links always "clickable", here's the workaround: spin-off a web site. When people generate (and share) links, they share web links https://your-server. When they open these links -> the web server redirects them with the exp://... (or your custom) scheme. If users have your app installed - the links will open with your app.

HTML IMA SDK - Custom click through

Requirement:
Show the Visit Website link for the VAST clickThrough. By default in we desktop, whole ima3 container is clickable and redirecting to clickThrough url. Is there anyway to show the clickThrough url like youtube?
Note
I have tried with custom click element. But it will only for web mobile. In the web desktop it won't work.
Demo Link:
codepen.io/anon/pen/jvVpvR
Just an update on this ticket, the user seem to contact goolgle ima sdk, and they say that is just not possible
https://groups.google.com/g/ima-sdk/c/xqDZvXuSJLE?pli=1

Download your own photos from Instagram via a web app

I've looked through the API documentation on Instagram and researched the web, but I haven't been able to find a consistent answer to whether it's possible to download your own Instagram photos via a web app.
For example, I'm trying to write a web app which allows users to authenticate into their Instagram account, and then download all their Instagram photos into the web app and display it.
The closest thing I've seen on Instagram is the following url: http://instagram.com/developer/endpoints/media/#get_media
But can someone confirm if this is the correct endpoint? Also, if this is the correct endpoint, assuming that I uploaded a high-resolution photo, would that photo be available for me to download in high resolution via the API?
You can do it easy with Google Chrome and you don't need the API:
I wrote a small ES6 script that does just this ( let's you view and save instagram images and videos on right click )
Here's the code:
document.addEventListener('contextmenu', (event) => {
const elements = document.elementsFromPoint(event.clientX, event.clientY);
const mediaSource = elements.find(element => /img|video/gi.test(element.tagName)).getAttribute('src');
mediaSource && window.open(mediaSource, '_blank');
});
What it does is when you click on image or video, it get's all elements under the mouse, finds the image/video and opens it in new tab. Then you save it.
Also, it's available as a Chrome Extension
Download instagram images of a particular user or tag using python. Source is included both console and GUI. Install all the dependencies before running. Remember this code is not optimized for python 3. Make sure that the profile is public or else only the profile picture will be downloaded.
link to my github repo:https://github.com/techweed/instagami
Its a python2 script and you need to install it for this to work.
The images would be downloaded to your working directory.

How (and where) to upload manifest file? (Google Gmail Gadget)

I'm new on this Gmail Gadget developments and I follow the instructions here:
https://developers.google.com/gmail/contextual_gadgets
I follow the Hello World example, replacing the variables with my owns, generating the manifest, the specs, etc.
But when it comes to upload the manifest file, it's saying to go to
http://code.google.com/googleapps/console/a/yourDomainName
and log in there. Then there is a serie of steps depending on this one.
The problem here is, what is the address I have to put there? I did register on the Google Apps (for bussiness) and register a domain. Still that domain isn't work.
I found several people with the same problem and none gave them a solution:
How to create an account on Google Apps to use Google Apps Extensions Console?
Logging into Google Apps Extension Console
http://grokbase.com/t/gg/google-appengine/141vmhsdqr/how-do-i-log-in-to-google-apps-extensions-console
Anyone knows how to create a Gmail Contextual Gadget?
Thanks in advance!
Ok, so the Gmail Contextual Gadgets doc says "Gmail contextual gadgets can be listed for sale in the Google Apps Marketplace". The Google Apps Marketplace docs say apps can be published on the Chrome Web Store but the web store seems to want some sort of .json manifest file that doesn't fit the documentation for Contextual Gadgets (read: Google's documentation is terrible).
Instead, I found a section inside the developer's console on Contextual Gadgets. It's also different from the documentation, but seems like the right spot.
Open your Google developers console
Select or create a project
Open the Google Apps Marketplace SDK page
Click "Enable API"
Click "Configuration"
Check the box marked "Gmail contextual gadget extension"
There are then options to fill out info on the Contextual Gadget.
I suggest :
https://code.google.com/apis/console/
Go on that link a for log in use your Google Apps for bussiness account , then create new project (gadget) and then you can upload manifet. Sorry for my English.
Hope this will help you.

Facebook Canvas application anchor tags are not working properly?

I'm developing a Facebook canvas application in rails 3.1 and using the latest Facebook graph API.
In anchor tags, when I give the href='/something' it's working nice when I navigate in same browser tab. The link is pointing to my host URL like host_url/something host_url contains HTTP as well , but when I open this anchor in a new tab using right click of mouse and chose to open in new tab it open the URL http://host_url/something and not in Facebook canvas.
I also change the anchor href with http://apps.facebook.com/my-app-name/something when I click this link nothing is displayed and request is no coming to my host. When I open this URL in new browser tab it works fine.
Can anybody tell me what I am doing wrong?
You're not doing anything wrong - if you're using relative links that's what will happen, because the app content is loaded in an iframe
Change your links to be absolute URLs including the apps.facebook.com/[namespace] prefix if you want them to always link to the canvas app when opened in a new window