public static object PostalCode(string username, object sessionId, string postalCode)
 {
     using (var component = new GeoNamesPostalCodesComponent())
     {
         var result   = (List <object>)component.Execute("Postal", username, sessionId, postalCode);
         var response = result[0];
         return(response);
     }
 }
 public static object Login(string username, string password)
 {
     using (var component = new GeoNamesPostalCodesComponent())
     {
         var result   = (List <object>)component.Execute("Login", username, password);
         var response = (HttpResponseMessage)result[0];
         foreach (dynamic item in response.Headers)
         {
             if (item.Key.Equals("Set-Cookie"))
             {
                 return(item.Value[0]);
             }
         }
         return(null);
     }
 }