How do I upload a photo / image to LinkedIn via API? - api

LinkedIn has a /share API endpoint which accepts a link and a message. The link is afterwards expanded to an OpenGraph card and that gives you a way to stick an image preview in there, but it seems there's no other way to upload an image/picture to LinkedIn feed like you can do in the web app itself.
Is there a way, private API, undocumented endpoint or some other way to do that?

Creating a rich media share is done in two steps. First, the media is uploaded to LinkedIn's media platform. Then, a personal or organization share referencing that media is created.
This URL might be help you.
https://developer.linkedin.com/docs/guide/v2/shares/rich-media-shares#upload

No. You need to give us the URL and we'll scrape it (or pull it from our cache).

Related

Pull Data from shopping websites by URL

I'm using Vuejs frame-work, and I'm looking for a solution that will allow me to pull from a link of shopping sites like Amazon and show me all the product details on Json, like there is on YouTube that when copying a link for example to WhatsApp, then the link loads information about the video.
someone know witch technology is recommended for this?
You could use a web crawler such as dexi.io to extract the html of interest from any web page. Calling dexi can be done programmatically from your code.

try to get content in google plus from China

I am a developer from China where we cannot access content from google plus or facebook due to some "special reason(been blocked)", and I want to get some wonderful content from google+, and put them into my online education website, all content is about learning knowledge.
So my first solution is: call google+ api to get these content, then store them into my site DB(of course, I will write clearly where those are from), but this solution is only for the text, for images, most of them were stored in googleusercontent.com(which is also blocked in China), and I don't want to download these images then store to my own website(overload is too big).
I want to transfer these pictures into other websites(not been blocked in China), then I noticed site: getpocket.com can save image from other websites, and they seem have some cache, can I use this feature? after get image url from google+, then call getpocket api to save this image, but don't know where api will return the cached image url), is it possible do this?
Does anyone have good solution for this images? so I can transfer these good learning knowledge to Chinese people?
(google+ activity api like this: https://www.googleapis.com/plus/v1/people/108305986241738899171/activities/public?maxResults=20&key=)
thanks everybody
I use mongoDB to store image which will be transfer to base64 string. e.g: http://www.tomylearn.com/netTest/index/listInfonews.do?categoryid=47

setPermissions on files using SkyDrive API

We would like to interface our cloud app with storage on user's SkyDrive. Has anyone worked out how to emulate sharing with the SkyDrive API. As far as I can tell it's not supported in the public API apis.live.net/v5.0 but of course the SkyDrive site itself is doing this using an API call like;
POST https://skydrive.live.com/API/2/SetPermissions
...
Content-Type:application/x-www-form-urlencoded
...
{"id":"F2720F142345635B!207","entities":[{"role":2,"type":0,"email":"someuser#somedomain.com"}],"requireSignIn":true,"userAction":0}:
As far as I can tell, this isn't what happens when we use the JavaScript API wl.api() Is skydrive.live.com/api OK to use or would this be an unsupported/illegal hack? I would dearly love a contact on the SkyDrive team to give an official response on this.
The API does provide a way to get a unique link to the file for reading or editing
GET https://apis.live.netv5.0/file.a6b2a7e8f2515e5e.A6B2A7E8F2515E5E!126
/shared_read_link?access_token=ACCESS_TOKEN
or
GET https://apis.live.netv5.0/file.a6b2a7e8f2515e5e.A6B2A7E8F2515E5E!126/shared_edit_link?access_token=ACCESS_TOKEN

Upload and share image on Google+

I can't seem to find any documentation or reference on upload and sharing images on Google+.
Is this action current supported in google+?
Their moment sharing seems to accept thumbnail url, but I don't want to keep the image hosted on my site once it is created and shared by visitor.
You have a few different options, but I'm not sure any of them are really what you're looking for.
Google+ doesn't really allow outside apps to upload and share something automatically.
As you've observed, the closest you can get is generating a Moment for them to share. And while there are similarities to Instant Upload, it isn't identical. You could probably use a data url to encode and store the image as part of the moment, but I haven't tested this.
Another alternative is to use the Google Drive API to store the image in their Drive space, permit the image to be read publicly, get a link for it, and use this link as the thumbnail URL. Similarly, you might be able to use the Picasa Web Albums Data API to store the image. Both have good, but different, integration with Google+. The former is more modern, while the latter has more features that are tailored for images.

Custom Twitter Pictures in stream

There are multiple servies that let you insert pictures and videos into the twitter stream. - with instagram and youtube being two of the first that come to mind.
The question is - how do I do that?
If I want a custom image, and I want to link them back to my site - do I have to use the /statuses/update_with_media.json endpoint (which adds it to pics.twitter.com) along with my own link? Meaning two links?
Is there a trick to how these sites do it, or are they officially supported by Twitter?
To play "in-line" on Twitter.com. Only a select few services will allow this.
in case of videos for example, refer to this article on Twitters website.
https://support.twitter.com/groups/31-twitter-basics/topics/109-tweets-messages/articles/75603-how-to-post-videos-on-twitter
You would need two links if you wanted to host a picture on Twitter itself and have it link to another place. The pictures hyper-link would be converted and another link would need to be added next to it.
more:
How do I add an image to a tweet or how does twitter decide which image urls to render
Is there a public API or meta data to integrate with Twitter new media system?
(PS great CI articles, thanks for all your help! :)