2012-08-24 3 views
0

내 응용 프로그램이 세부 사항 내 닝 프로 네트워크의 구성원 목록을 얻기 위해 노력하고 있어요,하지만 여전히 나는이닝은 모든 사용자 정보를 얻을

위해이 코드를 사용하여 무엇을해야 알아낼 수 없습니다 대한

감사합니다 사람이 사용하는 PHP를 구현하는 방법을 알고 제발 도와주세요

require_once('NingApi.php'); 

$ningApi = new NingApi('mychatterbook', 'xxxxx-e44f-47b5-ba0d-e99d98ba60be', 'xxxxx-436f-4ba0-9911-a2ac5b5a00bb','[email protected]','xxxxxx'); 


// Get the most recent photo 
$result = $ningApi->photo->fetchNRecent(); 

.. 닝 API의 사진을 얻을

답변

0

내가 그것을 가지고, 그것은 관리자 accou로 로그인 할 필요가 사용자 정보를 얻으려면 2 명의 사용자를 반환합니다.

require_once('NingApi.php'); 

    $ningApi = new NingApi('xxxbook', 'd1216884-e44f-47b5-xxx-xxxxe', 'xxx-xx-4ba0-9911-xxxxxxx','[email protected]','xxx'); 

    try { 
     $result1 = NingApi::instance()->user->fetchNRecent(2); 

    } catch (Exception $e) { 
     echo "Error: ".$e->getMessage()."\n".$e->getTraceAsString(); 
    } 

     print_r($result1); 
관련 문제