/** * gdata_contacts_service_new: * @authorizer: (allow-none): a #GDataAuthorizer to authorize the service's requests, or %NULL * * Creates a new #GDataContactsService using the given #GDataAuthorizer. If @authorizer is %NULL, all requests are made as an unauthenticated user. * * Return value: a new #GDataContactsService, or %NULL; unref with g_object_unref() * * Since: 0.9.0 */ GDataContactsService * gdata_contacts_service_new (GDataAuthorizer *authorizer) { g_return_val_if_fail (authorizer == NULL || GDATA_IS_AUTHORIZER (authorizer), NULL); return g_object_new (GDATA_TYPE_CONTACTS_SERVICE, "authorizer", authorizer, NULL); }
/** * gdata_tasks_service_new: * @authorizer: (allow-none): a #GDataAuthorizer to authorize the service's requests, or %NULL * * Creates a new #GDataTasksService using the given #GDataAuthorizer. If @authorizer is %NULL, all requests are made as an unauthenticated user. * * Return value: a new #GDataTasksService, or %NULL; unref with g_object_unref() * * Since: 0.15.0 */ GDataTasksService * gdata_tasks_service_new (GDataAuthorizer *authorizer) { g_return_val_if_fail (authorizer == NULL || GDATA_IS_AUTHORIZER (authorizer), NULL); return g_object_new (GDATA_TYPE_TASKS_SERVICE, "authorizer", authorizer, NULL); }
/** * gdata_calendar_service_new: * @authorizer: (allow-none): a #GDataAuthorizer to authorize the service's requests, or %NULL * * Creates a new #GDataCalendarService using the given #GDataAuthorizer. If @authorizer is %NULL, all requests are made as an unauthenticated user. * * Return value: a new #GDataCalendarService, or %NULL; unref with g_object_unref() * * Since: 0.9.0 */ GDataCalendarService * gdata_calendar_service_new (GDataAuthorizer *authorizer) { g_return_val_if_fail (authorizer == NULL || GDATA_IS_AUTHORIZER (authorizer), NULL); return g_object_new (GDATA_TYPE_CALENDAR_SERVICE, "authorizer", authorizer, NULL); }
/** * gdata_freebase_service_new: * @developer_key: (allow-none): developer key to use the API, or %NULL * @authorizer: (allow-none): a #GDataAuthorizer to authorize the service's requests, or %NULL * * Creates a new #GDataFreebaseService using the given #GDataAuthorizer. If @authorizer is %NULL, all requests are made as an unauthenticated user. * Having both @developer_key and @authorizer set to %NULL is allowed, but this should be reserved for debugging situations, as there is a certain * key-less quota for those purposes. If this service is used on any code intended to be deployed, one or both of @developer_key and @authorizer * should be non-%NULL and valid. * * Return value: (transfer full): a new #GDataFreebaseService; unref with g_object_unref() * * Since: 0.15.1 * Deprecated: 0.17.7: Google Freebase has been permanently shut down. */ GDataFreebaseService * gdata_freebase_service_new (const gchar *developer_key, GDataAuthorizer *authorizer) { g_return_val_if_fail (authorizer == NULL || GDATA_IS_AUTHORIZER (authorizer), NULL); return g_object_new (GDATA_TYPE_FREEBASE_SERVICE, "developer-key", developer_key, "authorizer", authorizer, NULL); }