내 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!"
}
[이 링크] (http://www.datasprings.com/resources/articles-information/pinterest-api-programming)에서 Pinterest API 인증 사용 방법을 확인하십시오. – yorkw