TwitPic filter by hashtag - twitpic

I want to display twitPic photos with the hashtag of #animals. Currently, I am displaying photos through the username. This is my code below:
$username = "smcsconverse";
//this is your twitpic RSS feed...
$yourRSS = "http://twitpic.com/photos/".$username."/feed.rss";
However, I am now stuck with how retrieving pictures through a given hashtag. I have been stuck quite awhile on this.

Looks like twit pic has added a beta hashtag search. Here is the documentation.

Related

Search special items (movies) in google api

hi i have a project and need to search movies name in any language .
in google i can find them but i need some api for project .like JSON api of list of movies and tv show with original name and rate or something
like this result search but in json:
https://www.google.com/search?q=%D9%85%D8%B1%D8%AF+%D8%A2%D9%87%D9%86%DB%8C+2010
i found this:
https://developers.google.com/custom-search/v1/introduction
and this filters
https://developers.google.com/custom-search/v1/reference/rest/v1/cse/list
but it's show website results not special item !
and i found imdb api:
https://sg.media-imdb.com/suggests/i/ironman.json
that was working fine but only search with english name
so any help?!!

Anchor podcast public api

Can I get the list of episodes of my anchor account in JS. Anchor give us embed code which is iframe.
Can I get the episode name with any public API?
My requirement is to show the list of all episodes of specific person on anchor platform on my mobile app.
Podcasts are based on RSS feeds, so yes, you can get all the details of your podcast by loading and reading the RSS feed off any podcast.
The RSS URL of the Anchor podcasts is https://anchor.fm/s/PODCAST_ID/podcast/rss where PODCAST_ID is the ID of your podcast.
Q: Can I get the episode name with any public API?
There is no Public API from Anchor I think... And I need also to create my own landing page for my Podcast on Anchor. Then I look up the source code in my anchor page and I saw the window.__STATE__ variable in the source code.
Hmmm... It is very nice to me! With the window.__STATE__ I can catch json value after using my dirty PHP Code. Just implements some built-in method PHP have:
file_get_contents()
substr()
strpos()
str_replace()
and additional method if you want to save json code in your internal file using:
file_put_contents()
This is my dirty PHP code (but it's work nicely!)
<?php
$html = file_get_contents('https://anchor.fm/<your-podcast-page-name>');
$json = substr($html, strpos($html, 'window.__STATE__ = {') , strpos($html, '"isError":false}};') - (strpos($html, 'window.__STATE__ = {')-1));
$json = str_replace('window.__STATE__ = ', '', $json);
$json = str_replace('"isNewUser":false,"', '"isNewUser":false,"isError":false}}', $json);
file_put_contents('podcasts.json', $json);
Sorry for my bad English... Cheers!

What is the simplest way to display Instagram follower count

I am using WordPress and trying to figure out the simplest way to display the amount of Instagram followers a user has.
Whilst searching I have found a few Instagram PHP wrapper scripts that seem a little overkill for what I am trying to display.
From reading through the Stackoverflow posts I came across a post that listed this code:
$userinfo = wp_remote_get("https://api.instagram.com/v1/users/3955450?access_token=f0d225aa955c4bd9ae563f87f831efab");
$userinfo = json_decode($userinfo);
$followers = $userinfo['data']['counts']['followed_by'];
echo "Folled by: " . $followers . " people";
This is a simple and perfect script HOWEVER it does not return any data.
I have setup a client on the Instagram Developer site however I cannot get the above script to display any data.
Any help would be greatly appreciated.
Try this:
$result = file_get_contents("https://api.instagram.com/v1/users/3955450?access_token=f0d225aa955c4bd9ae563f87f831efab");
$obj = json_decode($result);
echo $obj->data[0]->id;

gdata API return no results

I am just using this url to find the top rated videos on youtube with the word "scared".
http://gdata.youtube.com/feeds/api/standardfeeds/top_rated?q=scared
I am not using category or keywords because if I use it, Youtube doesn´t return videos without tags.
I want that Youtube looking for "scared" by title and description, so I am using "search query term": "q=".
But, using "q=scared", this link returns only 1 video. Why?
Another example that are no result - using "most_recent" and keyword "scary":
/feeds/api/standardfeeds/most_recent/-/%7Bhttp%3A%2F%2Fgdata.youtube.com%2Fschemas%2F2007%2Fkeywords.cat%7Dscary
And using q="scary", no result neither:
/feeds/api/standardfeeds/most_recent?q=scary
How can I get the videos using a "search" word?
Thanks!
try using this:
http://gdata.youtube.com/feeds/api/videos?q=scared
hopefully that will work.

Accessing Flixster data

Is there any way of accessing the data on Flixster? Specifically, I'd like to retrieve a list of all of my movie ratings. I know you can get an rss feed of these, but it only appears to return a subset of all of the ratings.
View your Rotten Tomatoes / Flixster movie ratings by accessing this URL, first replacing USERIDHERE in the URL.
http://community.flixster.com/api/v1/users/USERIDHERE/ratings.rss
You can find out your user id by clicking to view your Profile, which will contain your unique id in the URL, such as:
http://www.flixster.com/user/USERIDHERE/
Yes, there is a new-ish Rotten-Tomatoes API at http://developer.rottentomatoes.com/docs/read/json/v10/Movie_Reviews
Here's a simple program, using the API, that I've found:
https://github.com/mmihaljevic/flixter
...and you can read her blog post for more information.
Just tested both fetching and parsing, and it still appears to work.