Google Groups Home
Help | Sign in
Social Graph api client in diso repository
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Steve Ivy  
View profile  
 More options Feb 2 2008, 10:48 pm
From: "Steve Ivy" <steve...@gmail.com>
Date: Sat, 2 Feb 2008 20:48:29 -0700
Local: Sat, Feb 2 2008 10:48 pm
Subject: Social Graph api client in diso repository
Hi all,

As you know, Google just released their social graph API
(http://code.google.com/apis/socialgraph/). I wrote a quick and dirty
client in PHP that cosumes the JSON and returns it in a data
structure. There's more work to be done, particularly in making the
fetch code work with either fopen or curl.

$sga = new SocialGraphApi(Array('edgesout'=>0,'edgesin'=>0,'followme'=>'1',
'sgn'=>0));

$mydata = $sga->get('http://redmonk.net');

echo "<pre>" . print_r($mydata,true) . "</pre>";

Find the code at:

http://diso.googlecode.com/svn/php/sgapi/

--
Steve Ivy
http://redmonk.net // http://diso-project.org
This email is: [ ] bloggable [x] ask first [ ] private


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stephane Daury  
View profile  
 More options Feb 3 2008, 10:06 am
From: Stephane Daury <stephane.da...@gmail.com>
Date: Sun, 3 Feb 2008 10:06:18 -0500
Local: Sun, Feb 3 2008 10:06 am
Subject: Re: [diso-project] Social Graph api client in diso repository

Steve, you are so da man!

re: curl vs. fopen: the following has worked well for me so far.
<http://labs.tekartist.org/parseme/svn/trunk/index.php>
lines 409 -> 438:  if(function_exists('curl_init')) ...

I would have submitted a patch with a variant of the above, but  
starting to *get the character*, you're probably way ahead of me in  
your uncommitted checkout. ;)

---
Stephane Daury - http://tekartist.org/

On Feb 02, 2008, at 22:48, Steve Ivy wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stephen Paul Weber  
View profile  
 More options Feb 3 2008, 10:07 am
From: "Stephen Paul Weber" <singpol...@gmail.com>
Date: Sun, 3 Feb 2008 10:07:41 -0500
Local: Sun, Feb 3 2008 10:07 am
Subject: Re: [diso-project] Social Graph api client in diso repository
So cool!  Definately going to be playing with this.

On Feb 2, 2008 10:48 PM, Steve Ivy <steve...@gmail.com> wrote:

--
- Stephen Paul Weber, Amateur Writer
<http://www.awriterz.org>

MSN/GTalk/Jabber: singpol...@gmail.com
ICQ/AIM: 103332966
BLOG: http://singpolyma.net/


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stephane Daury  
View profile  
 More options Feb 3 2008, 10:16 am
From: Stephane Daury <stephane.da...@gmail.com>
Date: Sun, 3 Feb 2008 10:16:34 -0500
Local: Sun, Feb 3 2008 10:16 am
Subject: Re: [diso-project] Social Graph api client in diso repository

Oh, quick question: has the group decided on php4 vs. php5, since  
we're dealing with WP?

I've had to write a to_json function in the past, I could prob' crank  
a from_json function if needed.

Stephane

On Feb 03, 2008, at 10:06, Stephane Daury wrote:

---
Stephane Daury - http://tekartist.org/

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simon Wistow  
View profile  
 More options Feb 3 2008, 10:45 am
From: Simon Wistow <si...@thegestalt.org>
Date: Sun, 3 Feb 2008 15:45:08 +0000
Local: Sun, Feb 3 2008 10:45 am
Subject: Re: [diso-project] Social Graph api client in diso repository
On Sat, Feb 02, 2008 at 08:48:29PM -0700, Steve Ivy said:

> As you know, Google just released their social graph API
> (http://code.google.com/apis/socialgraph/). I wrote a quick and dirty
> client in PHP that cosumes the JSON and returns it in a data
> structure. There's more work to be done, particularly in making the
> fetch code work with either fopen or curl.

For what it's worth I just uploaded a Perl version of the API to CPAN.

It's almost exactly the same as the PHP one because, well, why not.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
chris.mess...@gmail.com  
View profile  
 More options Feb 3 2008, 12:35 pm
From: chris.mess...@gmail.com
Date: Sun, 3 Feb 2008 09:35:24 -0800
Local: Sun, Feb 3 2008 12:35 pm
Subject: Re: [diso-project] Re: Social Graph api client in diso repository
Pretty much PHP5, due to the use of tools like hKit and our need for
advanced XML processing. PHP5 isn't everywhere yet, but by the time we
get to a 1.0, hopefully it'll be available enough.
Chris

On 2/3/08, Stephane Daury <stephane.da...@gmail.com> wrote:

--
Chris Messina
Citizen-Participant &
  Open Source Advocate-at-Large
Work: http://citizenagency.com
Blog: http://factoryjoe.com/blog
Cell: 412.225.1051
IM: factoryjoe
This email is:   [ ] bloggable    [X] ask first   [ ] private

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Ivy  
View profile  
 More options Feb 3 2008, 12:39 pm
From: "Steve Ivy" <steve...@gmail.com>
Date: Sun, 3 Feb 2008 10:39:59 -0700
Local: Sun, Feb 3 2008 12:39 pm
Subject: Re: [diso-project] Re: Social Graph api client in diso repository
Is the JSON lib I've included 5-only?

On Feb 3, 2008 8:16 AM, Stephane Daury <stephane.da...@gmail.com> wrote:

--
Steve Ivy
http://redmonk.net // http://diso-project.org
This email is: [ ] bloggable [x] ask first [ ] private

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stephane Daury  
View profile  
 More options Feb 3 2008, 1:32 pm
From: Stephane Daury <stephane.da...@gmail.com>
Date: Sun, 3 Feb 2008 13:32:01 -0500
Local: Sun, Feb 3 2008 1:32 pm
Subject: Re: [diso-project] Re: Social Graph api client in diso repository

I thought so for a second, but it was my bad. I looked up some php  
docs refs and it look like it actually is backward compatible.

Can't wait for 2008-08-08... :p

Stephane

On Feb 03, 2008, at 12:39, Steve Ivy wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google