Discussion on rest-api

2 views
Skip to first unread message

Shawn Simister

unread,
Jul 11, 2008, 3:03:14 AM7/11/08
to Brightkite API
The sample URL for finding a user's list of Placemarks should be:

http://brightkite.com/people/me/placemarks.xml

instead of

http://brightkite.com/me/placemarks.xml

mcollins

unread,
Jul 11, 2008, 1:49:54 PM7/11/08
to Brightkite API
http://brightkite.com/me/placemarks.xml should work, as long as you
are logged in. All the /me resources will only work if you are logged
in, because otherwise there would be no way of knowing which user you
meant. /people/me/placemarks means "Give me all the placemarks for
the user named 'me'", so I don't think that will work since there is
no user named 'me'.

Mike

mcollins

unread,
Jul 24, 2008, 7:16:49 PM7/24/08
to Brightkite API
Want to see who is checked in at a place? No problem, just add /
people to the place URL.

http://brightkite.com/places/356a192b7913b04c54574d18c28d46e6395428ab/people.xml

People URL's also accept a radius parameter so you can see who's
nearby. Radius is specified in meters up to 100,000.

http://brightkite.com/places/1b6453892473a467d07372d45eb05abc2031647a/people.xml?radius=2000

You can also specify hours_ago to see who's been there recently.

http://brightkite.com/places/1b6453892473a467d07372d45eb05abc2031647a/people.xml?radius=2000&hours_ago=2

Click on http://groups.google.com/group/brightkite-api/web/rest-api?hl=en
- or copy & paste it into your browser's address bar if that doesn't
work.

Chris Messina

unread,
Jul 24, 2008, 7:19:18 PM7/24/08
to brightk...@googlegroups.com
What if you only want to see the person's nearby friends?

How about something like:


Chris
--
Chris Messina
Citizen-Participant &
Open Source Advocate-at-Large
factoryjoe.com # diso-project.org
citizenagency.com # vidoop.com
This email is: [ ] bloggable [X] ask first [ ] private

Mike Collins

unread,
Jul 24, 2008, 7:37:08 PM7/24/08
to brightk...@googlegroups.com
Friends doesn't work yet, but hopefully we will have that in there soon.

-mc

andrewacomb

unread,
Aug 11, 2008, 1:13:28 PM8/11/08
to Brightkite API
I would like to get the last three photos or checkins.

Is there a way to just get a specific number of previous checkins/
photos rather than all of them? With the following?

http://brightkite.com/people/andrewacomb/objects.xml?filters=photos

Thanks,
Andrew Acomb
http://www.andrewacomb.com/blog/

Martin May

unread,
Aug 11, 2008, 2:38:11 PM8/11/08
to Brightkite API

Dirky

unread,
Oct 15, 2008, 3:14:02 PM10/15/08
to Brightkite API
I'm getting an error when I try and post my location.
curl -X POST http://brightkite.com/places/54.028696%2C%20-2.805204/checkins
-u user:pass
<html>
<head><title>411 Length Required</title></head>
<body bgcolor="white">
<center><h1>411 Length Required</h1></center>
<hr><center>nginx/0.6.32</center>
</body>
</html>
??


John Barker

unread,
Oct 15, 2008, 3:53:37 PM10/15/08
to brightk...@googlegroups.com
Try replacing -X with -d ... the web-server isn't receiving a content-
length header.. which is why you're receiving this error in return.

Dirky

unread,
Oct 21, 2008, 7:12:48 PM10/21/08
to Brightkite API
I got this bit working now thanks.
If only I could get my head round converting Degrees, Minutes, Seconds
to Decimal Degrees in perl I might start to
get somewhere! :)


On Oct 15, 8:53 pm, John Barker <j...@brightkite.com> wrote:
> Try replacing -X with -d ... the web-server isn't receiving a content-
> length header.. which is why you're receiving this error in return.
>
> On Oct 15, 2008, at 12:14 PM, Dirky wrote:
>
>
>
> > I'm getting an error when I try and post my location.
> > curl -X POSThttp://brightkite.com/places/54.028696%2C%20-2.805204/checkins

Mike Collins

unread,
Oct 21, 2008, 7:38:02 PM10/21/08
to brightk...@googlegroups.com
The fractional part of decimal degrees is the total number of seconds divided by 3600, so:

decimal_degree = degrees + ( ( minutes * 60 + seconds ) / 3600)

If it's a south latitude or west longitude, then it's negative, north and east are positive.

-mc

Mike Dent

unread,
Oct 22, 2008, 3:47:20 AM10/22/08
to brightk...@googlegroups.com
Thanks Mike, the GPS outputs data to me in this format:-

54.019274 -2.480123

but occasionally like:

54.019274 -2.48013

Well that't not 100% true, those figures I have taken from the $GPRMC
line and divided each by 100.

The whole conversion thing came about when I try to send those figures
to google maps (which I assume the brightkite api uses) and I am
returned a result which is about 20 miles east of my true location.n
cheers
Mike


2008/10/22 Mike Collins <collin...@gmail.com>:

Brian Wigginton

unread,
Jan 27, 2010, 7:50:15 PM1/27/10
to Brightkite API
For getting blocked user info, I tried using

/people/<login name>/blocked_people
/me/blocked_people

but it fails. When I changed it to

/people/<login name>/blocked
/me/blocked

it works. Does the API doc need to be updated?

Reply all
Reply to author
Forward
0 new messages