Hi,
Could you retry with setUserCredentials(String username, String
password, ClientLoginAccountType accountType) ? The accountType is
ClientLoginAccountType.HOSTED.


On 3月1日, 午後8:21, Sarath K S <[email protected]> wrote:
> import com.google.gdata.client.spreadsheet.SpreadsheetService;
>
> public class Test {
>         public static void main(String[] args) {
>                 try {
>                         SpreadsheetService service = new
> SpreadsheetService("MySpreadsheetService");
>                         service.setUserCredentials("username@mydomain", 
> "password");
>                 } catch (Exception e) {
>                         e.printStackTrace();
>                 }
>         }
>
> }
>
> This code is throwing me invalid credentials exceptions, but the
> credentials I have used are valid.
>
> Can you please help me identify whats the issue?
>
> Thanks & Regards,
> Sarath

Reply via email to