Tweet preview using Public API - twitter

I use Twitter Public API. I allow my users to tweet from my application and I would like to give them final look before publishing. Do you know a way of doing it using only Public API or even without it?

Related

How to get/enable public URL for media uploaded to slack using slack API

I'm using slack api to upload media to a public channel, in-response I'm getting different urls for the uploaded media including 'permalink_pulic' which seems as the public URL, but that link doesn't work.Other Links are only accessible by slack team members.
Is there any way we can enable those public_link, so that media can be accessible outside slack.
In general Slack files are not public, but you can open public access to them if you want.
Call the method files.sharedPublicURL after you uploaded it to enable public access to a Slack file via its permalink_public URL.
See API documentation for more info.
To enable the public link, your app requires the file:write:user permission scope from the team, the team's access_token and the specific file_id you're trying to make public
Then send a request to Slack's files.sharedPublicURL(access_token, file_id) endpoint to receive a JSON object containing the file id.
You can use the new Slack Events API to have Slack send your app file information, including the file id, when events as file_created or file_shared occur. Here's a list of events Slack supports

YouTube API hosting unlisted videos for website using OAuth2.

I need to host videos with a service like YouTube that allows some sort of privacy so that its not accessible easily to the public (or not at all).
I am using the YouTube API V3.
What I would like to achieve is to use one account to retrieve all the unlisted / private videos for that channel specified.
At the moment when I use:
$youtube_service->playlists->listPlaylists('snippet,id',array('channelId'=>'CHANNEL_ID'));
This will only retrieve public videos.
Is there a way I can authorize a specific user pro-grammatically and retrieve that users private or unlisted content/videos/playlists from the youtube API and populate my website?
Thanks in advance
Adam
The YouTube API only supports public API key access and Oauth2 access. If you want to see a users private YouTube videos they will have to authenticate your application first using Oauth2, then you can save the refresh token and be able to access it at a later date.

using LINQ to Twitter to read public tweets, do i need to register my app at Twitter

I want to read tweets from a public account (the public twitter account shows delays in the public transport).
I am planning to use LINQ to Twitter for that reason.
The question is: do I need to create an 'application' at the Twitter dev portal for this reason?
This doesn't seem necessary because my custom app does not post any data but only reads it...
Twitter recently shut down API v1.0 and everything now runs on API v1.1, including LINQ to Twitter. API v1.1 requires authentication on all endpoints.
So, you will have to create an application and use OAuth.
There are demos with the LINQ to Twitter Downloads and with the downloadable Source code. There is a Samples page for various technologies. You can also read the Documentation, which includes explanations of all APIs. I recently added a Twitter API Map so you can match Twitter API endpoints with LINQ to Twitter queries.

How to search comments based on Specific Keyword from social networks?

Is there any social network like Google+, Instagram, Tumblr, MySpace, Linkedin, Foursquard, have Search api which allows to search public comments/posts based on "Specific Keyword".
Just like Twitter Search API, as described on these links...
Search Twitter from your Program
Search Twitter from Java
Sure.
You can search public posts on Facebook via the Graph API using the following URL structure:
https://graph.facebook.com/search?q=batman&type=post
You can search public tagged photos via the Instagram API like this (authentication required):
https://api.instagram.com/v1/tags/search?q=batman
You can search for public tagged posts on Tumblr like this (authentication required):
http://api.tumblr.com/v2/tagged?tag=batman
You can search for public tips via the Foursquare API like this (authentication required):
https://api.foursquare.com/v2/tips/search?ll=40.7,-74&query=batman

Getting public photos from Instagram account without login

I want to get all the photos or public photos from my Instagram account, without logging in to it.
Is there an API provided by Instagram to make this happen?
Unfortunately, no. The Instagram API requires Authentication to retrieve a certain accounts pictures. Check out the API Console on Instagram's developer website to see which methods require authentication and which of them don't. I know you can retrieve tags, popular pictures, and search users. Good luck!

Resources