2012-12-26 2 views
3

내 Android 앱에 Pinterest를 통합하기 위해 REST API를 사용하고 있지만 카테고리에 액세스하려고 할 때 오류가 발생합니다.Pinterest를 Android 앱에 제대로 통합하는 방법은 무엇인가요?

내 코드 : 나는 다음과 같은 오류가 엔드 포인트에서 반환 받고 있어요

String url = "https://api.pinterest.com/"; 
String allCategories = "/v2/boards/categories/"; 
RestClient client = new RestClient(url + allCategories); 
String response = ""; 

    try { 
     client.AddParam("limit", "36"); 

     try { 
      client.Execute(RequestMethod.GET); 
     } catch (Exception e) { 
      e.printStackTrace(); 
     } 
     response = client.getResponse(); 
    } catch (Exception e) { 
     System.out.println(">>> Exception >>> " + e + " >>> Message >>> " 
       + e.getMessage()); 
    } 
    System.out.println(">>> response >>> " + response); 
    Log.d(">> Login response >>> ", response); 

:

오늘로
{ 
    "message": "Please upgrade your app!", 
    "error": "Authentication failed: Please upgrade your app!" 
} 
+1

[이 링크] (http://www.datasprings.com/resources/articles-information/pinterest-api-programming)에서 Pinterest API 인증 사용 방법을 확인하십시오. – yorkw

답변

-1

, 클립 서비스 API가 을 촬영되었습니다 (볼 here)

그 동안 API와 마찬가지로 작동하는 제 3 자 구현 스크래퍼를 사용하는 것이 좋습니다.

http://pinterestapi.co.uk/

사용자의 게시판, 좋아요 및 핀을 가져 오는 데 사용할 수 있습니다.

참고 : 이상하게도 v1 API의 수는 여전히 works입니다. 그러나 이것은 다시 문서화되지 않은 행동이며 이것에 의존하지 마십시오

0

Pinterest에는 공식 api가없고 비공식 API는 not working now입니다. 그래서 누군가 다른 비공식 api 나 Pinterest가 공식 버전을 발표하지 않는 한, 당신의 코드가 어떤 식 으로든 작동하지 않을 것이라고 생각합니다.

추 신 : More Info.

+0

URL (https://api.pinterest.com/v2/boards/categories/)을 확인하면 나타나는 것과 같은 오류 메시지가 인쇄됩니다. – noob

+0

공식적인 답변은 pinterest - https://help.pinterest.com/entries/21151603-i-m-a-developer-does-pinterest-have-a-public-api – noob

관련 문제