New Version Of The Ning API PHP Library Now Live - Build2024-03-29T10:44:08Zhttp://build.ning.com/forum/topics/new-version-of-the-ning-api?commentId=6308082%3AComment%3A651&xg_source=activity&feed=yes&xn_auth=noH,
The curl connection is r…tag:build.ning.com,2011-06-09:6308082:Comment:49162011-06-09T07:28:41.668ZVincenthttp://build.ning.com/profile/Vincent
<p>H,</p>
<p> </p>
<p>The curl connection is returning the #7 error number.</p>
<p>I think its because my offices use a proxy so it might be blocking the connection somehow.</p>
<p>do you have any idea how i can fix this.</p>
<p> </p>
<p>I did try adding this code below the $ch = curl_init(); line of the call method.</p>
<p> </p>
<p>curl_setopt($ch, CURLOPT_TIMEOUT, self::CURL_TIMEOUT);</p>
<p>curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);</p>
<p>curl_setopt($ch, CURLOPT_PROXY,…</p>
<p>H,</p>
<p> </p>
<p>The curl connection is returning the #7 error number.</p>
<p>I think its because my offices use a proxy so it might be blocking the connection somehow.</p>
<p>do you have any idea how i can fix this.</p>
<p> </p>
<p>I did try adding this code below the $ch = curl_init(); line of the call method.</p>
<p> </p>
<p>curl_setopt($ch, CURLOPT_TIMEOUT, self::CURL_TIMEOUT);</p>
<p>curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);</p>
<p>curl_setopt($ch, CURLOPT_PROXY, "proxy_address");</p>
<p>curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);</p>
<p>curl_setopt($ch, CURLOPT_URL, "my network address");</p>
<p> </p>
<p>Any help is appreciated thanks in advance.</p> This is great, thank you! Is…tag:build.ning.com,2011-05-19:6308082:Comment:44292011-05-19T23:02:54.604ZChrishttp://build.ning.com/profile/Chris
<p>This is great, thank you! Is this likely to be updated at any point? What are all the extra fields in the user, and how do I populate them?</p>
<p> </p>
<p>Thanks :)</p>
<p>This is great, thank you! Is this likely to be updated at any point? What are all the extra fields in the user, and how do I populate them?</p>
<p> </p>
<p>Thanks :)</p> Hi Pierre,
Sorry about that…tag:build.ning.com,2010-11-16:6308082:Comment:6512010-11-16T04:37:29.000ZBen Plowmanhttp://build.ning.com/profile/BenPlowman
<div><p>Hi Pierre,</p>
<p> </p>
<p>Sorry about that - that's definitely a bug. Thanks for pointing it out. I just pushed a fix for this to github, but please let me know if you see any more problems.</p>
<p> </p>
<p>-Ben</p>
</div>
<div><p>Hi Pierre,</p>
<p> </p>
<p>Sorry about that - that's definitely a bug. Thanks for pointing it out. I just pushed a fix for this to github, but please let me know if you see any more problems.</p>
<p> </p>
<p>-Ben</p>
</div> Hi ben.
And thanks for this…tag:build.ning.com,2010-11-13:6308082:Comment:6402010-11-13T11:01:47.000ZPierre Lannoyhttp://build.ning.com/profile/PierreLannoy
<p>Hi ben.</p>
<p> </p>
<p>And thanks for this precision. I confess I am a bit lost in the reingeniering of my code.</p>
<p>If I do that, it throw an exception (M<em>issing one or more of the following required constants in /xxx/NingApi.php: subdomain, email, password, consumerKey, consumerSecret</em>) on the second line :</p>
<blockquote><p>$ningApi = new NingApi($subdomain, $ckey, $csecret, $name, $pass);</p>
<p> $ningApi->user->fetch($args);</p>
</blockquote>
<p>What am I doing wrong…</p>
<p>Hi ben.</p>
<p> </p>
<p>And thanks for this precision. I confess I am a bit lost in the reingeniering of my code.</p>
<p>If I do that, it throw an exception (M<em>issing one or more of the following required constants in /xxx/NingApi.php: subdomain, email, password, consumerKey, consumerSecret</em>) on the second line :</p>
<blockquote><p>$ningApi = new NingApi($subdomain, $ckey, $csecret, $name, $pass);</p>
<p> $ningApi->user->fetch($args);</p>
</blockquote>
<p>What am I doing wrong ?</p>
<p> </p>
<p>Pierre</p> Hi Pierre,
You are still ab…tag:build.ning.com,2010-11-12:6308082:Comment:6362010-11-12T18:41:57.000ZBen Plowmanhttp://build.ning.com/profile/BenPlowman
<p>Hi Pierre,</p>
<p> </p>
<p>You are still able to get the author field from from all content. For fetching users, the call looks like this: NingApi::instance()->user->fetch($args);</p>
<p> </p>
<p>You still have to specify a selection criteria, e.g. $args['id'] = '1234:User:678', but then by default the author field should be returned.</p>
<p> </p>
<p>All of the methods still allow you to pass an arguments array that is identical to what you would pass to the NingApi in the previous…</p>
<p>Hi Pierre,</p>
<p> </p>
<p>You are still able to get the author field from from all content. For fetching users, the call looks like this: NingApi::instance()->user->fetch($args);</p>
<p> </p>
<p>You still have to specify a selection criteria, e.g. $args['id'] = '1234:User:678', but then by default the author field should be returned.</p>
<p> </p>
<p>All of the methods still allow you to pass an arguments array that is identical to what you would pass to the NingApi in the previous version. If you'd like only a subset of possible fields, then you can set $args['fields'] to be the comma-separated list like you would in the previous api library version.</p>
<p> </p>
<p>Sorry to scare you like that! There shouldn't be anything you cannot do with this new library version that you could with the previous, but let me know if you find otherwise.</p>
<p> </p>
<p>-Ben</p> Oh, please Ben, tell me it's…tag:build.ning.com,2010-11-12:6308082:Comment:6322010-11-12T15:01:49.000ZPierre Lannoyhttp://build.ning.com/profile/PierreLannoy
<p>Oh, please Ben, tell me it's me who does not understand anything and that I can still request screen name ...</p>
<p>Oh, please Ben, tell me it's me who does not understand anything and that I can still request screen name ...</p> Hi Ben !
Thanks for this up…tag:build.ning.com,2010-11-12:6308082:Comment:6262010-11-12T14:37:54.000ZPierre Lannoyhttp://build.ning.com/profile/PierreLannoy
<p>Hi Ben !</p>
<p> </p>
<p>Thanks for this update. It's more powerfull like that.</p>
<p>Just a (potential) issue that frightens me : how can i get "author" field (screen name) now?</p>
<p> </p>
<p>Pierre</p>
<p>Hi Ben !</p>
<p> </p>
<p>Thanks for this update. It's more powerfull like that.</p>
<p>Just a (potential) issue that frightens me : how can i get "author" field (screen name) now?</p>
<p> </p>
<p>Pierre</p>