I want to be able to parse the website wikihow.com, so after some reasearch I find this page. But despites my reading I don't know who to parse the website.
For example, when I make a search on the website, I have a list of links with images to choose which I want to read.
So I try to do the same with the api. I try to use the query option like this : http://www.wikihow.com/api.php?action=query&titles=fries. Nothing came. Is it really an API for the website. Do you have an example of how to use the api.
Yes, wikiHow's API is the same as MediaWiki's API..But it does not provide API like http://www.wikihow.com/api.php?action=query&titles=fries
Related
So a while back I used to use the twitter json search in one of my apps but it seems since the change in API versions there has been some major changes which even after reading the documentation I still can't get my head around and it really doesn't make it very easy to understand so hopefully one of you tech guys out there can help me out.
I want to clean my application up so it works again in plainly doing the following:-
http://search.twitter.com/search.json?
q='+param+'&
rpp=100&
result_type=recent&
lang=en
Obviously with the changes this is no longer possible but I want to be able to do this again using the new address but in JQuery unless someone can suggest either a tutorial or a piece of code or even a link to a topic where I could get my answer. I'm also open to using PHP as this is what I used at one point with searching Facebook's timeline and you can get an access token using $.get() for Facebook so surely it would be the same with Twitter too?
Any advice/code is welcome.
Thanks!
the search API needs authorization now. I'd say that, first off, you need to call the https url not http.
With Abhramam William's library you'd do something like the following, after having received your app's bearer token:
$your_tweets = $connection->get("https://api.twitter.com/1.1/search/tweets.json?q=from:grey_mina&result_type=recent&count=5");
I've downloaded the Google API Client and installed it on my Server. I set up my API and my client ID.
I configured the PHP file and now I'm trying to open it:
http://euotm.net/google-api-php-client/examples/calendar/simple.php
I signin using a Google Account, but then all I get is a code.
WHy does that happen? I need it to show a calendar.
I'm new to this API, so I really don't know much.
Thanks ahead,
Tom.
Indeed google calendar api doesn't provide a display widget to integrate calendar to your application. The api only gives you the possibility to retrieve every details about your calendars and their events, and then you'll have to find a way to display it on your screen if you want a nice layout.
have you
require_once 'google-api-php-client/src/Google_Client.php';
require_once 'google-api-php-client/src/contrib/Google_CalendarService.php';
these files in your code ? i think you may miss it. what error, you are getting kindly make more sense about this
I am having the same issue. From what I've found so far, it looks like RadASM is right, but I was wondering what you moved on to in terms of which widget/gadget you used to display your actual calendar.
If you haven't found it yet, you may be looking for this:
https://developers.google.com/google-apps/calendar/gadgets/event/
Please let me know what you went with.
RadASM is right. Google Calendar API provides well structured data for the calendars and calendar events, allowing data manipulation, too. Desiring your custom layout, you need to take care of it.
Here is a detailed explanatory article with full demo code within a single HTML file - Easy and compact access to your Google calendars.
I am new to facebook api. I want to search for a particular word on facebook. I have gone through the documentation at https://developers.facebook.com/docs/reference/api/. But I dont know how to construct the query in PHP.
Could any one please provide a sample code. Also how do I specify the count and page (like twitter)?
I am currently using the API provided by facebook. I saw that there are alternative API's but I would like to restrict the API to the official one
Facebook provides the search functionality which is like searching using the search inside facebook.com.
To read about it go to here: http://developers.facebook.com/docs/reference/api/#searching
Edit
As it states in that document:
When searching for public posts or posts on the user's News Feed, you
can page over the results by using the since, until and limit
parameters. since and until both accept a unix timestamp.
Also, just a bit above the "searching" section there's the "Paging" section, using both you can come up with:
https://graph.facebook.com/search?q=coffee&type=place&offset=X&limit=4
Which in terms of using the php sdk, is probably like: "search?q=coffee&type=place&offset=X&limit=4"
I am building a site in PHP which will allow users to view their last 5-10 google web history keywords on their profile page. I know that google history is available as a RSS feed at following URL :
https://www.google.com/history/?output=rss
How can I write a code in php which will pass username and password to google and allows to fetch keywords from it programmatically.
Any help is much appreciated as I am stuck in this. I have visited following questions but they did`t helped much.
Script to download Google web history
Retrieve old searches from Google web history (has some code in C#, don`t know how to convert to PHP)
Thanks
It looks like that RSS feed uses HTTP basic auth.
You can use Curl to do the authentication and fetching then parse the RSS feed to retrieve the history.
For basic auth with curl see: How do I make a request using HTTP basic authentication with PHP curl?
And theres plenty of RSS parsers in php... here's just one: http://magpierss.sourceforge.net/
I am trying to create a feed on a site which displays all the tweets which are about me so say if some one says #oli hello how are you? I would like it to display separately from my twitter feed.
How do I achieve this?
5 seconds using google -> http://apiwiki.twitter.com/Libraries#PHP
Use the statuses/mentions method.
If needed, you could also use the search API, for example http://search.twitter.com/search.json?q=to%3Aoli
This would allow you to get results without authentication, but search's API has its own limitations. See http://apiwiki.twitter.com/Twitter-Search-API-Method%3A-search