

The service names for other Google Data services can be found in the Google Data APIs FAQ page. In this example, the service we're using is the Picasa Web Albums data API. Please see the ClientLogin documentation for specific information on the parameters used in the above request.

LSID=EUBBBIaBADCl-kNxvRVmcQghpt3cqSMfEooKR9flLOUZqwgP9OrZS83gse-KSdTNeXhxsET7FYenDhceP9lIPOmesH-t9qh-AWUHjjMdZEbUNeF9mWyzln6Z-FajaiG-cVFkqW0ZJ8ZbnCP30xXj6xFK6QxaAcqy_9Pej8jhEnxS9E61ftQGPgĪuth=EUBBIacAAADK-kNxvRVmcQghpt3cqSMfEooLNMflLNIQqwgP9OrZS83gs-KSdTNeXhxsET7FYePWmaD8Vsy1V4LSUGMUP48Je2TO8OcjBj6HgAtPhiZeX-gKDfagZDK44j4n-Tkb44nhOnp2_QPSnBj3Z2vYwOEDjjG3Q53aQVC2132JKOuGh data-urlencode -data-urlencode Passwd=new+foundland \Įxample Response: SID=DQAAAHYBADCv2pSv7nflacDNwz3zEDUGtrSvNVDcpkSfddi77b3U5sEaHmP8YLWhmA36F9rk85mL8J5dqo4apn0T1vKz0fPGI9Xtnuet6cuE2ZzYvrNIwbSC_HjTqF4zudNQnnlDuD2wqZT-g1qXI8KhGAQZV4NexHZoQPlabTsGuRZeIBxj1A

You can ask curl to URL-encode these arguments by using the -data-urlencode flag. Note that data arguments passed with curl must be URL-encoded if they contain non-ASCII characters, which often appear in Email and Passwd arguments. This request yields a response with several tokens, one of which can be used to make requests to the Google Data service. These variables are passed as the Email, Passwd, and service arguments, respectively.
#Picasa web albums deny password
With this method of authentication, the application using Google Data APIs directly handles the username and password of the user.Īn authentication request for ClientLogin takes a username, password, and service name as form post variables. Using ClientLoginĬlientLogin is intended for installed (desktop/mobile) applications. AuthSub authentication headers could be used with cURL, but the more-advanced process of obtaining the tokens is out of scope for this article. For the purposes of testing using cURL, ClientLogin is the easier method and is documented below. Authenticating to a Google Data ServiceĪuthenticated Google Data requests are performed by adding an HTTP header to the request which contains either a ClientLogin (desktop/mobile apps) or AuthSub (web apps) authentication token. The SSL-enabled packages are required if you wish to use cURL to acquire authentication tokens or to access some Google Data services which require using SSL for requests.
#Picasa web albums deny download
Note that the command-line tool uses the libcurl library, which may be offered as a separate download package, so, if you're not compiling from the source, be sure to download a 'binary' package instead of a 'libcurl' package. If you don't have the tool installed, visit the download page on the cURL website to obtain the official source or a user-contributed binary package. Try typing curl in your favorite shell to see if the tool is installed and is in your PATH.
#Picasa web albums deny install
However, all these examples can be readily applied to other Google Data APIs.ĬURL is commonly available on a default install of many UNIX/Linux platforms. This article uses examples based upon the Picasa Web Albums data API. Some other tools are mentioned in this article for making these tasks easier. cURL is often used by developers to test Google Data services, as it supports the HTTP functionality required to interact with the APIs at a low level.ĬURL only provides support for performing the HTTP communication, so knowledge of the Google Data protocol, the service-specific protocol and the XML data format used is a prerequesite for working with the application. However, you're always welcome to use lower-level tools to work with our services, and it's pretty easy to do with a little guidance.ĬURL is a command-line application for performing requests using a variety of protocols including HTTP. We publish a number of client libraries to make interacting with Google Data APIs easier. Authenticating to a Google Data ServiceĪt heart, Google Data APIs use Atom feeds and entries (XML) as a data format and HTTP as a protocol for data transmission - extending the Atom Publishing Protocol.For information about authorizing requests with a newer API, see Google Accounts Authentication and Authorization. For information about a specific new API, see the new API's documentation. Warning: This page is about Google's older APIs, the Google Data APIs it's relevant only to the APIs that are listed in the Google Data APIs directory, many of which have been replaced with newer APIs.
