Bibliotheken und Beispiele
Die Google API-Clientbibliotheken, die in zahlreichen gängigen Programmiersprachen verfügbar sind, erleichtern die Verwendung der Google Site Verification API.
In den folgenden Tabellen sind in der ersten Spalte die Entwicklungsphasen der einzelnen Bibliotheken angegeben (einige befinden sich in der Anfangsphase) und Links zur Dokumentation der Bibliothek. Die zweite Spalte enthält Links zu verfügbaren Beispielen für jede Bibliothek.
Außerdem sind die folgenden Bibliotheken im Anfangsstadium verfügbar:
Empfohlene Beispiele für diese API
Oft lernt man den Umgang mit einer API am einfachsten, wenn man sich Beispielcode ansieht. Die Tabelle oben enthält Links zu einigen grundlegenden Beispielen für jede der angezeigten Sprachen. In diesem Abschnitt werden besonders interessante Beispiele für die Google Site Verification API hervorgehoben.
Sprache |
Empfohlene Beispiele |
API-Version |
PHP |
- WordPress-Plug-in für die Websiteüberprüfung (Quelle)
Plug-in für WordPress, das die Google Site Verification API zum Bestätigen von Blogs verwendet. Veranschaulicht die Verwendung der PHP-Bibliothek für API-Aufrufe und die Authentifizierung mit OAuth. Die ZIP-Datei des Plug-ins enthält unkompilierten und nicht verschleierten PHP-Code, der als Beispielcode verwendet werden kann.
Dieses Plug-in ist gemäß GPLv2 zur Einhaltung der rechtlichen Anforderungen von WordPress lizenziert. Die PHP-Clientbibliothek steht unter der weniger strengen Apache 2.0-Lizenz zum Download zur Verfügung.
|
1.0 |
[null,null,[],[[["Google API client libraries simplify the use of the Google Site Verification API and are available in various programming languages, including Java, JavaScript, .NET, Objective-C, PHP, and Python."],["Sample code for the Google Site Verification API is readily available for multiple languages, aiding developers in understanding and utilizing the API effectively."],["The libraries have varying stages of development, with some, such as Dart, Go, Node.js, and Ruby, being in early stages (alpha/beta)."],["A featured sample showcasing the practical application of the Google Site Verification API is the Site Verification WordPress Plugin, demonstrating API calls, OAuth authentication, and the use of the PHP library."]]],["Google API client libraries simplify the use of the Google Site Verification API across multiple programming languages. Documentation and sample code are provided for Java, JavaScript, .NET, Objective-C, PHP, and Python. Early-stage support includes Dart, Go, Node.js, and Ruby. Featured samples are available, including a WordPress plugin that demonstrates the PHP library and OAuth authentication for the API's version 1.0. Sample code allows users to see working examples.\n"]]