2013-01-07 3 views
3

(VK 안드로이드 SDK) 전 언젠가는 KException을 반환하기 시작했다.: 보안 문자가 필요합니다 내가 VK 안드로이드 SDK (com.perm.kate.api) 코드의 <a href="https://bitbucket.org/ruX/android-vk-sdk/overview" rel="nofollow">https://bitbucket.org/ruX/android-vk-sdk/overview</a></p> <p>마지막 줄을 사용

문서에서 : 어떤 종류의 작업이 너무 자주 완료되면 API 요청이 "보안 문자 필요"오류를 반환 할 수 있습니다. 보안 문자 식별자 captcha_img

  • 이미지에 링크가 사용자에게 표시 할 thatshould -

    • 가 captcha_sid : 사용자는 이미지에서 코드를 입력하고 요청 매개 변수에 입력 된 보안 문자 코드로 다시 요청을 보내야합니다 이미지에서 텍스트를 입력 할 수 있습니다.

    질문은 어디에서이 매개 변수를 입력해야합니까? 나는이 인수를 포함하지 않는 사용자 프로필 얻을 수있는 방법을 사용하십시오

    public ArrayList<User> getProfiles(Collection<Long> uids, Collection<String> domains, String fields, String name_case) throws MalformedURLException, IOException, JSONException, KException 
    

    코드는 사용자 프로파일을 얻을 : 모든 매개 변수를 설정해야합니다

    Api vkApi=new Api(account.access_token, Constants.API_ID); 
    //get user 
    Collection<Long>userIds=new ArrayList<Long>(); 
    userIds.add(account.user_id); 
    ArrayList<User> users=vkApi.getProfiles(userIds, null, null, null); //KException 
    
  • 답변

    1

    합니다. null는 아니고 빈 문자열 및 빈 문자열이있는 배열. 내 예 :

    Collection<Long> u = new ArrayList<Long>(); 
    u.add(user_id); 
    Collection<String> d = new ArrayList<String>(); 
    d.add(""); 
    
    response = vkApi.getProfiles(u, d, "", "", "", "");