You are right, just check the ResponseString in the exception and discard
those related with user and password.

On Fri, Dec 23, 2011 at 4:09 AM, Chalpat Rauth <[email protected]> wrote:

> Hi Oscar,
>
> In your method you are using username and password, it becomes specific to
> user....In my first email or query I had asked it should be generic and not
> specific to any user. This I want to check if Picasa service is available
> or not...kind of status check....
>
> If we pass any user credentials for status check...there could be issues
> like password expiry or things like that...
>
>
> Thanks,
> Chalpat
>
>
> On Thu, Dec 22, 2011 at 10:45 PM, Oscar Torres <
> [email protected]> wrote:
>
>> Sure..
>>
>> References:
>> using Google.GData.Client;
>> using Google.GData.Extensions.Location;
>> using Google.GData.Extensions.MediaRss;
>> using Google.GData.Photos;
>> using Google.Picasa;
>>
>>
>> Private Methods:
>>
>>         private PicasaService InicializarServicio()
>>         {
>>             PicasaService servicio = new PicasaService(applicationName);
>>             servicio.setUserCredentials(userName, password);
>>             return servicio;
>>         }
>>
>>         private void AgregarError(EClasificacionEvento clasificacion,
>> Exception exception)
>>         {
>>             //Well in this place i try to handle and store the exception
>> throwed.
>>         }
>>
>> public enum EClasificacionEvento //this is an enum made for classify the
>> kind of errors that can happend using the API
>>     {
>>          PicasaWebAutenticar,
>>          ...
>>     }
>>
>>
>> On Thu, Dec 22, 2011 at 1:24 AM, Chalpat Rauth <[email protected]>wrote:
>>
>>> Hi Oscar,
>>>
>>> Can you please add the imports or the source of the objects that you are
>>> using in your code? I tried to get them to rectify my compilation problems
>>> for the code that you have given, but could not resolve them.
>>>
>>>
>>> Thanks,
>>> Chalpat
>>>
>>> On Wed, Dec 21, 2011 at 1:55 AM, Oscar Torres <
>>> [email protected]> wrote:
>>>
>>>> Hello there I did something similar of what you need. Check this (is in
>>>> spanish):
>>>>
>>>>
>>>>         public bool Autenticar()
>>>>         {
>>>>             bool resultado = false;
>>>>             try
>>>>             {
>>>>                 PicasaService servicio = InicializarServicio();
>>>>                 string token = servicio.QueryClientLoginToken();
>>>>                 resultado = !string.IsNullOrEmpty(token);
>>>>             }
>>>>             catch (InvalidCredentialsException ex)
>>>>             {
>>>>                 AgregarError(EClasificacionEvento.PicasaWebAutenticar,
>>>> ex);
>>>>             }
>>>>             catch (WebException ex)
>>>>             {
>>>>                 AgregarError(EClasificacionEvento.PicasaWebAutenticar,
>>>> ex);
>>>>             }
>>>>             catch (Exception ex)
>>>>             {
>>>>                 AgregarError(EClasificacionEvento.PicasaWebAutenticar,
>>>> ex);
>>>>             }
>>>>
>>>>             return resultado;
>>>>         }
>>>>
>>>
>>
>>
>>>  On Tue, Dec 20, 2011 at 6:19 AM, Chalpat Rauth <[email protected]>wrote:
>>>>
>>>>>  Hi All,
>>>>>
>>>>> I have developed the picasa apis access and it is working fine.
>>>>> Now, my application needs to check the availability of Picasa. This
>>>>> should not be specific to any user. Is there any API that I can use.
>>>>> Thanks...
>>>>>
>>>>> --
>>>>> With Best Wishes
>>>>> Chalpat
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Google Picasa Web Albums API" group.
>>>>> To post to this group, send email to
>>>>> [email protected].
>>>>> To unsubscribe from this group, send email to
>>>>> [email protected].
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/google-picasa-data-api?hl=en.
>>>>>
>>>>
>>>>  --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Google Picasa Web Albums API" group.
>>>> To post to this group, send email to
>>>> [email protected].
>>>> To unsubscribe from this group, send email to
>>>> [email protected].
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/google-picasa-data-api?hl=en.
>>>>
>>>
>>>
>>>
>>> --
>>> With Best Wishes
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google Picasa Web Albums API" group.
>>> To post to this group, send email to
>>> [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected].
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-picasa-data-api?hl=en.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google Picasa Web Albums API" group.
>> To post to this group, send email to
>> [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/google-picasa-data-api?hl=en.
>>
>
>
>
> --
> With Best Wishes
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Picasa Web Albums API" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-picasa-data-api?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-picasa-data-api?hl=en.

Reply via email to