client_login_client is a very lightweight ClientLogin authenticator, which is useful for people building applications that want to use the Google Data Protocol.
client_login_client was designed to be as painless as possible to use, and only depends on libCURL, through which is supports authentication over SSL.
The API was designed to be exceptionally simple. The following is how you'd go about authenticating an account and getting the authentication token.
client_login_client *client = client_login_client_new();
client_login_client_set_email(client, "[email protected]");
client_login_client_set_password(client, "fake_password");
client_login_client_set_service(client, "jotspot");
char *auth_token = NULL;
if (client_login_client_authenticate(client, &auth_token)) {
// Authentication succeeded.
free(auth_token);
}