google-code-backups / lifepress

Automatically exported from code.google.com/p/lifepress
Other
0 stars 0 forks source link

Create a plugin for Foursquare #10

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I'm using Foursquare recently and I want to build a plugin that fetches
information from my account. I don't know yet if they provide a RSS or any
kind of API.

Original issue reported on code.google.com by carsten....@gmail.com on 12 Feb 2010 at 6:38

GoogleCodeExporter commented 8 years ago
They have the API
http://foursquare.com/developers/

and the feeds
http://foursquare.com/feeds/

You can also get a KML feed from there. Would be nice to have Lifepress display 
a
little GMap/OpenStreet Map from that. ;-)

Original comment by carsten....@gmail.com on 12 Feb 2010 at 6:42

GoogleCodeExporter commented 8 years ago
Additional information for OAuth: http://groups.google.com/group/foursquare-
api/web/oauth

Original comment by carsten....@gmail.com on 12 Feb 2010 at 10:54

GoogleCodeExporter commented 8 years ago
General process:

1. Import RSS items
2. in pre_db() read the venue ID, request venue details via API
3. Create link to Google Maps/OpenStreetMap that includes a small map view
4. Use the link to map view as an image(?) - here it get's blurry...

Original comment by carsten....@gmail.com on 12 Feb 2010 at 10:56

GoogleCodeExporter commented 8 years ago
FYI, I found this blog post a while back which details how to create a Sweetcron
plugin for Brightkite:
http://www.ciscomonkey.net/2009/04/27/brightkite-maps-with-sweetcron

If the Foursquare RSS feeds include geo data, then you could use that code as a
reference for how to generate Google Map images.

Original comment by tonyduck...@gmail.com on 13 Feb 2010 at 2:31

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
OK. Here we go with the first Foursquare try. It will get from your private RSS 
feed 
(http://foursquare.com/feeds/) the details from the Venue you check in and it 
will display a Google Map Image 
with the location.

Right now it works with the RSS and only with Check In. In the future we can 
work with their API.

Original comment by djbl...@gmail.com on 16 Mar 2010 at 7:38

Attachments:

GoogleCodeExporter commented 8 years ago
Any comment?

Original comment by djbl...@gmail.com on 25 Mar 2010 at 7:13

GoogleCodeExporter commented 8 years ago
@djblunk Thanks for sharing! Wondering why your setting $item->item_content='' 
? Even 
if your not using it don't you think you should still keep it stored in the DB? 

Has anyone been using this? How's it been working for you guys?

Original comment by Mitchell...@gmail.com on 7 May 2010 at 8:52

GoogleCodeExporter commented 8 years ago
I will include this into Lifepress next. I need to re-setup my dev environment 
first,
and I will use my own Lifepress instance as a demo site for the most recent 
version.

Original comment by carsten....@gmail.com on 10 May 2010 at 5:54

GoogleCodeExporter commented 8 years ago
I tried adding my foursquare feed to my dev installation, but I got this error 
after clicking "Add feed":

XML error: Undeclared entity error at line 1, column 715

Any hints on that? I heard about this a few times now, but can't remember a fix.

Original comment by carsten....@gmail.com on 10 May 2010 at 7:22

GoogleCodeExporter commented 8 years ago
The feed works okay, I see my items in foursquare, only the map is totally 
blue: http://ls.molwebs.nl/ (in other themes too)..

Original comment by m.olisla...@gmail.com on 26 Aug 2010 at 11:44

GoogleCodeExporter commented 8 years ago
Looks like the latlong data isn't published to the google url. Has someone got 
a working version?

Original comment by m.olisla...@gmail.com on 26 Aug 2010 at 12:58