Update WebClip : Execution of request failed

272 views Asked by At

I'am new with the API ! I'am trying to build some console app to auto setting emails for my domain ! I add our domain to google app and link it with google server ! ( So I'm able to receive and send mail )

I tried to do one think : Disable WebClip using this Code !

class Program
{
    static void Main(string[] args)
    {
        GoogleMailSettingsService service = new GoogleMailSettingsService("mydomain.com", "your-apps");
        service.setUserCredentials("[email protected]", "********");
        try
        {
            service.UpdateWebclip("alaeddine.gallas", "false");
        }
        catch (Exception ex)
        {
            Console.WriteLine(ex.Message);
        }
        Console.ReadLine();
    }
}

Console output : Execution of request failed: https://apps-apis.google.com/a/feeds/emailsettings/2.0/mydomain.com/alaeddine.gallas/webclip

I tried also to retrieve labels but it throw me the same exception !

Did I miss something ? Did I have to enable something in the domain management portal ? What I have to do to make thins code run ?

1

There are 1 answers

2
user1774301 On

Are you able to execute any other operation?

As far I know the ClientLogin authentication method was deprecated.