Ning API: Questions and Answers - Build2024-03-29T11:25:55Zhttp://build.ning.com/forum/categories/ning-api-questions-and-answers/listForCategory?categoryId=6308082%3ACategory%3A36&%3Bpage=8&feed=yes&xn_auth=noPlease tell me how much is API fee if using Shoutem?tag:build.ning.com,2013-03-12:6308082:Topic:201622013-03-12T17:31:33.759Zshoallanhttp://build.ning.com/profile/shoallan
<p>Hi, there :D</p>
<p>I want to use Shoutem (<a href="http://www.shoutem.com/">http://www.shoutem.com/</a>) with NING Pro.</p>
<p>How much is API fee if this situation?</p>
<ul>
<li>5000 members</li>
<li>every member access the app everyday</li>
<li>I'm using "PUSH" on Shoutem</li>
</ul>
<p>Also, could you tell me your case of using Shoutem?</p>
<p></p>
<p>Thanks,<br/>SHO</p>
<p></p>
<p>Hi, there :D</p>
<p>I want to use Shoutem (<a href="http://www.shoutem.com/">http://www.shoutem.com/</a>) with NING Pro.</p>
<p>How much is API fee if this situation?</p>
<ul>
<li>5000 members</li>
<li>every member access the app everyday</li>
<li>I'm using "PUSH" on Shoutem</li>
</ul>
<p>Also, could you tell me your case of using Shoutem?</p>
<p></p>
<p>Thanks,<br/>SHO</p>
<p></p> Retrieving Questions via APItag:build.ning.com,2013-01-24:6308082:Topic:188562013-01-24T08:44:05.621ZWil Huddlestonhttp://build.ning.com/profile/WilHuddleston
<p>I've setup a php script to retrieve user data from the Ning system via the API. When importing members, I am pulling the answers to all of the questions stored in profileQuestions. However, we have at least two members that when their information is imported, one of the critical questions we need data for does not come across.</p>
<p>I have been told that the user has answered the question and that they are showing up inside the Ning system as they should. However, when I query their info…</p>
<p>I've setup a php script to retrieve user data from the Ning system via the API. When importing members, I am pulling the answers to all of the questions stored in profileQuestions. However, we have at least two members that when their information is imported, one of the critical questions we need data for does not come across.</p>
<p>I have been told that the user has answered the question and that they are showing up inside the Ning system as they should. However, when I query their info from the API, the question does not have an entry at all. However, other questions come through fine and I do know that the user originally did not answer the question. I was told that they recently went in and changed their response but I am not seeing any change on my end.</p>
<p>Is it possible for me to verify that the question has been answered with only access to the API or is there a way I can have an admin check to make sure the user answered the question? Or has anyone had issues with answers dropping off to questions sporatically?</p>
<p>Thanks,<br/>Wil</p> How do I insert PHP code in my Ning Network Pages?tag:build.ning.com,2013-01-19:6308082:Topic:186402013-01-19T16:35:12.660ZAlexhttp://build.ning.com/profile/Alex208
<p>I am trying to pull some content via an API and every time I insert PHP code on a page using the ADD Page feature, my Php code gets commented out. Any ideas?</p>
<p>I am trying to pull some content via an API and every time I insert PHP code on a page using the ADD Page feature, my Php code gets commented out. Any ideas?</p> How do I create a page from a JSON pull?tag:build.ning.com,2013-01-19:6308082:Topic:188472013-01-19T15:29:19.571ZAlexhttp://build.ning.com/profile/Alex208
<p>Hi, All!</p>
<p>What I want to do is pull information via an API from my CMS and display it on one page of my Ning Network page. The whole pull will create the page. How can I do that?</p>
<p>I have put my code on the page HTML field, but it does not seem to work. Any help would be greatly appreciated.</p>
<p></p>
<p>Alex</p>
<p>Hi, All!</p>
<p>What I want to do is pull information via an API from my CMS and display it on one page of my Ning Network page. The whole pull will create the page. How can I do that?</p>
<p>I have put my code on the page HTML field, but it does not seem to work. Any help would be greatly appreciated.</p>
<p></p>
<p>Alex</p> Customize photo app with custom JStag:build.ning.com,2013-01-08:6308082:Topic:188342013-01-08T22:34:44.740ZPavlo Taranovhttp://build.ning.com/profile/PavloTaranov
<p>Hi, we require that in "Photo" section additional button "Exif data" appear. We have a JS code to implement this, but I'm not sure what is the right way to add it there (if it is possible)?</p>
<p>Could somebody suggest how this "hack" could be implemented? Is it some api that allow to modify existing application?</p>
<p>Thanks for any suggestions.</p>
<p>Hi, we require that in "Photo" section additional button "Exif data" appear. We have a JS code to implement this, but I'm not sure what is the right way to add it there (if it is possible)?</p>
<p>Could somebody suggest how this "hack" could be implemented? Is it some api that allow to modify existing application?</p>
<p>Thanks for any suggestions.</p> Error: cURL error: Operation timed outtag:build.ning.com,2012-12-03:6308082:Topic:183312012-12-03T19:58:55.952ZAlex Seymourhttp://build.ning.com/profile/AlexSeymour
<p>Hi guys,</p>
<p>I am getting the following error:<br></br>Error: cURL error: Operation timed out after 10000 milliseconds with 0 bytes received</p>
<p>All was working well previously and I have not changed anything on my network.</p>
<p>What would cause this error?</p>
<p></p>
<p>This is from a simple test as detailed below:</p>
<p>require_once('ning-api-php/NingApi.php');</p>
<p>echo "Fetch Recent Photos..";<br></br>// Get the most recent photo<br></br>try {<br></br> $result =…</p>
<p>Hi guys,</p>
<p>I am getting the following error:<br/>Error: cURL error: Operation timed out after 10000 milliseconds with 0 bytes received</p>
<p>All was working well previously and I have not changed anything on my network.</p>
<p>What would cause this error?</p>
<p></p>
<p>This is from a simple test as detailed below:</p>
<p>require_once('ning-api-php/NingApi.php');</p>
<p>echo "Fetch Recent Photos..";<br/>// Get the most recent photo<br/>try {<br/> $result = NingApi::instance()->photo->fetchNRecent();<br/> echo "I am back...";<br/> print_r($result);<br/>} catch (Exception $e) {<br/> echo "Error: ".$e->getMessage()."\n".$e->getTraceAsString();<br/>}</p> API 500 Internal Server Errortag:build.ning.com,2012-12-03:6308082:Topic:181752012-12-03T18:42:48.713ZTobi Harperhttp://build.ning.com/profile/TobiHarper
<p>Hey guys, just a quick question.</p>
<p>Im using the ning api to grab a user's email and then submit it to my server, however even though this works 90% of the time, randomly I will start getting a 500 Internal server error.</p>
<p>I've checked the error codes and the code 500 relates to authentication, however it doesn't make any sense that it will authenticate 90% of the time and then all of a sudden it will timeout.</p>
<p>Does anybody have any similar issues where the NingApi works…</p>
<p>Hey guys, just a quick question.</p>
<p>Im using the ning api to grab a user's email and then submit it to my server, however even though this works 90% of the time, randomly I will start getting a 500 Internal server error.</p>
<p>I've checked the error codes and the code 500 relates to authentication, however it doesn't make any sense that it will authenticate 90% of the time and then all of a sudden it will timeout.</p>
<p>Does anybody have any similar issues where the NingApi works sometimes and then sometimes fails ?</p>
<p>Any help would be so greatly appreciated!</p>
<p>Thank you!</p> What is ning.xauth.client.exceptions.ClientException?tag:build.ning.com,2012-10-23:6308082:Topic:182522012-10-23T16:21:06.964ZFranco Mercallihttp://build.ning.com/profile/FrancoMercalli
<p>I developed a Ning application on my network, that worked nicely until yesterday.</p>
<p>Unfortunately, today I received a couple of times the following error message, from a simple call to the Ning API:</p>
<blockquote><p>{"success":false,"reason":"An unexpected ClientException (ning.xauth.client.exceptions.ClientException) occurred: Unknown IO exception occurred","status":500,"code":1,"subcode":0,"trace":"7f356a60-8ff4-47c2-8cf8-a82e93e4384e"}</p>
</blockquote>
<p>Anyone knows what exactly…</p>
<p>I developed a Ning application on my network, that worked nicely until yesterday.</p>
<p>Unfortunately, today I received a couple of times the following error message, from a simple call to the Ning API:</p>
<blockquote><p>{"success":false,"reason":"An unexpected ClientException (ning.xauth.client.exceptions.ClientException) occurred: Unknown IO exception occurred","status":500,"code":1,"subcode":0,"trace":"7f356a60-8ff4-47c2-8cf8-a82e93e4384e"}</p>
</blockquote>
<p>Anyone knows what exactly is a <strong>ning.xauth.client.exceptions.ClientException</strong> and what may be the cause of it?</p>
<p>What is particularly puzzling is the mention to an "IO exception".</p>
<p>On the online documentation, here on Build, I found the following information for status: 500, code: 1 and subcode: 0:</p>
<blockquote><p>Authorization Internal error 500 Internal Server Error 1 0</p>
</blockquote>
<p>but its meaning is not very clear to me.</p>
<p>The error was caused by the following call:</p>
<blockquote><p>$risultato = ningapi_get('User?'.$utenti.'fields=fullName,url,iconUrl');</p>
</blockquote>
<p>where ningapi_get is defined as follows</p>
<blockquote><p>function ningapi_get($resource, $obj_fmt = true,<br/> $TOKEN = TOKEN_NC, $TOKEN_SECRET = TOKEN_SECRET_NC,<br/> $NING_NETWORK = NING_NETWORK, $CONSUMER_KEY = CONSUMER_KEY, $CONSUMER_SECRET = CONSUMER_SECRET) {<br/> <br/> $curl = curl_init("https://external.ningapis.com/xn/rest/" . $NING_NETWORK . "/1.0/$resource" . ($obj_fmt ? '' : '&xn_pretty=true'));<br/> $header = 'Authorization: OAuth ';<br/> $header .= 'oauth_consumer_key="' . $CONSUMER_KEY . '",';<br/> $header .= 'oauth_token="' . $TOKEN . '",';<br/> $header .= 'oauth_signature="' . $CONSUMER_SECRET . '%26' . $TOKEN_SECRET . '",';<br/> $header .= 'oauth_signature_method="PLAINTEXT",oauth_version="1.0"';<br/> curl_setopt($curl, CURLOPT_HTTPHEADER, array($header));<br/> curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);<br/> curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);<br/> $r = curl_exec($curl);<br/> curl_close($curl);<br/> return $obj_fmt ? json_decode($r) : '<pre>' . ($r) . '</pre>';<br/> }</p>
</blockquote>
<p>In the end, it's just a simple CURL call to the "User" resource, with a number of "author=" params.</p>
<p>Thanks in advance to anyone that can help!</p>
<p> </p>
<p> </p> Create new user from API/other sitetag:build.ning.com,2012-09-20:6308082:Topic:181032012-09-20T23:35:21.120ZEricahttp://build.ning.com/profile/Erica
<p>Hi all,</p>
<p>I'm working with someone who uses Ning for their community, but has a large content and download site as well. They have requested a change to that site, so that users can sign up for a Ning account <em>from that site</em>, without having to redirect them to Ning first.</p>
<p>The particular scenario is as follows:</p>
<p>- User selects something they want to download.<br></br>- User enters their name and email address, and checks the button saying "please sign me up for the…</p>
<p>Hi all,</p>
<p>I'm working with someone who uses Ning for their community, but has a large content and download site as well. They have requested a change to that site, so that users can sign up for a Ning account <em>from that site</em>, without having to redirect them to Ning first.</p>
<p>The particular scenario is as follows:</p>
<p>- User selects something they want to download.<br/>- User enters their name and email address, and checks the button saying "please sign me up for the forum"<br/>- User clicks "OK". Their download begins, and they receive a verification email from the Ning forum asking them to verify their account.</p>
<p>I looked through the API, but could not find anything which looked like it would allow me to create a new user. Is there some other way that I can trigger the sign up process without (a) redirecting users to the Ning sign up page, and (b) requiring users to enter their details in two places?</p>
<p><br/>Kind regards,</p>
<p>Erica</p> Is OAuth authentication ONLY PLAINTEXT?tag:build.ning.com,2012-07-30:6308082:Topic:172692012-07-30T21:30:16.542ZJohn Woodwardhttp://build.ning.com/profile/JohnWoodward
<p>I have been able to get debug version of the software to get the OAuth 1.0a access token and secret for accounts at Twitter, LinkedIn, Tumblr, and Yahoo.</p>
<p>But always get 401 unauthorized on Ning.</p>
<p>I think I've made the mistake of thinking the documentation using "signature_method='PLAINTEXT' " was just for simplicity, clarity and avoidance of signature complications. That the 'HMAC-SHA1' default would be substituted for production work.</p>
<p></p>
<p>'PLAINTEXT' would mean our…</p>
<p>I have been able to get debug version of the software to get the OAuth 1.0a access token and secret for accounts at Twitter, LinkedIn, Tumblr, and Yahoo.</p>
<p>But always get 401 unauthorized on Ning.</p>
<p>I think I've made the mistake of thinking the documentation using "signature_method='PLAINTEXT' " was just for simplicity, clarity and avoidance of signature complications. That the 'HMAC-SHA1' default would be substituted for production work.</p>
<p></p>
<p>'PLAINTEXT' would mean our 3'rd party app has to get, from a form we present to the user, the user's Ning account email address AND Ning account password, does it not?</p>
<p>I thought a major part of OAuth was to avoid the 3'rd party software to ever knowing / having the Ning login credentials (email/password) for the user's Ning account.</p>
<p></p>
<p>Have I got this right?</p>
<p>If so, any prospects for full blown HMAC-SHA1 implementation in the offing?</p>
<p>At the moment, the Ruby OAuth gem I'm using does not offer 'PLAINTEXT' option. What would be recommended?</p>
<p></p>
<p></p>