OLD | NEW |
(Empty) | |
| 1 # Package of Google APIs |
| 2 |
| 3 ## Description |
| 4 |
| 5 This repository contains auto-generated client libraries for accessing |
| 6 Google APIs using dart. It has the usual dart package layout. |
| 7 |
| 8 ## Usage |
| 9 |
| 10 The first step is to obtain oauth2 access credentials. This can be done using |
| 11 the `googleapis_auth` package. Your application can access APIs on behalf of a |
| 12 user or using a service account. |
| 13 |
| 14 After obtaining credentials, an API from the `googleapis` package can be |
| 15 accessed with an authenticated HTTP client. |
| 16 |
| 17 The following is an example of a command line application which lists files |
| 18 in Google Drive by using a service account. |
| 19 |
| 20 Create a `pubspec.yaml` file with the `googleapis_auth` and `googleapis` |
| 21 dependencies. |
| 22 |
| 23 ... |
| 24 dependencies: |
| 25 googleapis: any |
| 26 googleapis_auth: any |
| 27 |
| 28 Create a service account in the Google Cloud Console and save the credential |
| 29 information. After that the Cloud Storage API can be accessed like this: |
| 30 |
| 31 import 'package:googleapis/storage/v1.dart'; |
| 32 import 'package:googleapis_auth/auth_io.dart'; |
| 33 |
| 34 final Credentials = new ServiceAccountCredentials.fromJson(r''' |
| 35 { |
| 36 "private_key_id": ..., |
| 37 "private_key": ..., |
| 38 "client_email": ..., |
| 39 "client_id": ..., |
| 40 "type": "service_account" |
| 41 } |
| 42 '''); |
| 43 |
| 44 void main() { |
| 45 clientViaServiceAccount(Credentials, |
| 46 [StorageApi.DevstorageReadOnlyScope]).then((http)
{ |
| 47 var storage = new StorageApi(http); |
| 48 storage.buckets.list('dart-on-cloud').then((buckets) { |
| 49 print("Received ${buckets.items.length} bucket names:"); |
| 50 for (var file in buckets.items) { |
| 51 print(file.name); |
| 52 } |
| 53 }); |
| 54 }); |
| 55 } |
| 56 |
| 57 ## Available Google APIs |
| 58 |
| 59 The following is a list of APIs that are currently available inside this |
| 60 package. |
| 61 |
| 62 ####  Ad
Exchange Buyer API - adexchangebuyer v1.3 |
| 63 |
| 64 Accesses your bidding-account information, submits creatives for validation, fin
ds available direct deals, and retrieves performance reports. |
| 65 |
| 66 Official API documentation: https://developers.google.com/ad-exchange/buyer-rest |
| 67 |
| 68 ####  Ad
Exchange Seller API - adexchangeseller v1.1 |
| 69 |
| 70 Gives Ad Exchange seller users access to their inventory and the ability to gene
rate reports |
| 71 |
| 72 Official API documentation: https://developers.google.com/ad-exchange/seller-res
t/ |
| 73 |
| 74 ####  Admin Dir
ectory API - admin directory_v1 |
| 75 |
| 76 The Admin SDK Directory API lets you view and manage enterprise resources such a
s users and groups, administrative notifications, security features, and more. |
| 77 |
| 78 Official API documentation: https://developers.google.com/admin-sdk/directory/ |
| 79 |
| 80 ####  Email Mig
ration API v2 - admin email_migration_v2 |
| 81 |
| 82 Email Migration API lets you migrate emails of users to Google backends. |
| 83 |
| 84 Official API documentation: https://developers.google.com/admin-sdk/email-migrat
ion/v2/ |
| 85 |
| 86 ####  Admin Rep
orts API - admin reports_v1 |
| 87 |
| 88 Allows the administrators of Google Apps customers to fetch reports about the us
age, collaboration, security and risk for their users. |
| 89 |
| 90 Official API documentation: https://developers.google.com/admin-sdk/reports/ |
| 91 |
| 92 ####  AdSense
Management API - adsense v1.4 |
| 93 |
| 94 Gives AdSense publishers access to their inventory and the ability to generate r
eports |
| 95 |
| 96 Official API documentation: https://developers.google.com/adsense/management/ |
| 97 |
| 98 ####  AdSense
Host API - adsensehost v4.1 |
| 99 |
| 100 Gives AdSense Hosts access to report generation, ad code generation, and publish
er management capabilities. |
| 101 |
| 102 Official API documentation: https://developers.google.com/adsense/host/ |
| 103 |
| 104 ####  Google
Analytics API - analytics v3 |
| 105 |
| 106 View and manage your Google Analytics data |
| 107 |
| 108 Official API documentation: https://developers.google.com/analytics/ |
| 109 |
| 110 ####  Google
Play Android Developer API - androidpublisher v2 |
| 111 |
| 112 Lets Android application developers access their Google Play accounts. |
| 113 |
| 114 Official API documentation: https://developers.google.com/android-publisher |
| 115 |
| 116 ####  Google Ap
ps Activity API - appsactivity v1 |
| 117 |
| 118 Provides a historical view of activity. |
| 119 |
| 120 Official API documentation: https://developers.google.com/google-apps/activity/ |
| 121 |
| 122 ####  Google Ap
p State API - appstate v1 |
| 123 |
| 124 The Google App State API. |
| 125 |
| 126 Official API documentation: https://developers.google.com/games/services/web/api
/states |
| 127 |
| 128 ####  BigQuery
API - bigquery v2 |
| 129 |
| 130 A data platform for customers to create, manage, share and query data. |
| 131 |
| 132 Official API documentation: https://developers.google.com/bigquery/docs/overview |
| 133 |
| 134 ####  Blogger
API - blogger v3 |
| 135 |
| 136 API for access to the data within Blogger. |
| 137 |
| 138 Official API documentation: https://developers.google.com/blogger/docs/3.0/getti
ng_started |
| 139 |
| 140 ####  Books API
- books v1 |
| 141 |
| 142 Lets you search for books and manage your Google Books library. |
| 143 |
| 144 Official API documentation: https://developers.google.com/books/docs/v1/getting_
started |
| 145 |
| 146 ####  Calenda
r API - calendar v3 |
| 147 |
| 148 Lets you manipulate events and other calendar data. |
| 149 |
| 150 Official API documentation: https://developers.google.com/google-apps/calendar/f
irstapp |
| 151 |
| 152 ####  Google Ci
vic Information API - civicinfo us_v1 |
| 153 |
| 154 An API for accessing civic information. |
| 155 |
| 156 Official API documentation: https://developers.google.com/civic-information |
| 157 |
| 158 ####  Google Ci
vic Information API - civicinfo v1 |
| 159 |
| 160 An API for accessing civic information. |
| 161 |
| 162 Official API documentation: https://developers.google.com/civic-information |
| 163 |
| 164 ####  C
ompute Engine API - compute v1 |
| 165 |
| 166 API for the Google Compute Engine service. |
| 167 |
| 168 Official API documentation: https://developers.google.com/compute/docs/reference
/latest/ |
| 169 |
| 170 ####  Content A
PI for Shopping - content v2 |
| 171 |
| 172 Manage product items, inventory, and Merchant Center accounts for Google Shoppin
g. |
| 173 |
| 174 Official API documentation: https://developers.google.com/shopping-content/v2/ |
| 175 |
| 176 ####  Google Ma
ps Coordinate API - coordinate v1 |
| 177 |
| 178 Lets you view and manage jobs in a Coordinate team. |
| 179 |
| 180 Official API documentation: https://developers.google.com/coordinate/ |
| 181 |
| 182 ####  CustomSea
rch API - customsearch v1 |
| 183 |
| 184 Lets you search over a website or collection of websites |
| 185 |
| 186 Official API documentation: https://developers.google.com/custom-search/v1/using
_rest |
| 187 |
| 188 ####  DFA
Reporting API - dfareporting v1.3 |
| 189 |
| 190 Lets you create, run and download reports. |
| 191 |
| 192 Official API documentation: https://developers.google.com/doubleclick-advertiser
s/reporting/ |
| 193 |
| 194 ####  DoubleCli
ck Bid Manager API - doubleclickbidmanager v1 |
| 195 |
| 196 API for viewing and managing your reports in DoubleClick Bid Manager. |
| 197 |
| 198 Official API documentation: https://developers.google.com/bid-manager/ |
| 199 |
| 200 ####  DoubleCli
ck Search API - doubleclicksearch v2 |
| 201 |
| 202 Report and modify your advertising data in DoubleClick Search (for example, camp
aigns, ad groups, keywords, and conversions). |
| 203 |
| 204 Official API documentation: https://developers.google.com/doubleclick-search/ |
| 205 |
| 206 ####  Driv
e API - drive v2 |
| 207 |
| 208 The API to interact with Drive. |
| 209 |
| 210 Official API documentation: https://developers.google.com/drive/ |
| 211 |
| 212 ####  Freebas
e Search - freebase v1 |
| 213 |
| 214 Find Freebase entities using textual queries and other constraints. |
| 215 |
| 216 Official API documentation: https://developers.google.com/freebase/ |
| 217 |
| 218 ####  Fusion Ta
bles API - fusiontables v1 |
| 219 |
| 220 API for working with Fusion Tables data. |
| 221 |
| 222 Official API documentation: https://developers.google.com/fusiontables |
| 223 |
| 224 ####  Google Pl
ay Game Services API - games v1 |
| 225 |
| 226 The API for Google Play Game Services. |
| 227 |
| 228 Official API documentation: https://developers.google.com/games/services/ |
| 229 |
| 230 ####  Google Pl
ay Game Services Management API - gamesManagement v1management |
| 231 |
| 232 The Management API for Google Play Game Services. |
| 233 |
| 234 Official API documentation: https://developers.google.com/games/services |
| 235 |
| 236 ####  Gmai
l API - gmail v1 |
| 237 |
| 238 The Gmail REST API. |
| 239 |
| 240 Official API documentation: https://developers.google.com/gmail/api/ |
| 241 |
| 242 ####  Grou
ps Migration API - groupsmigration v1 |
| 243 |
| 244 Groups Migration Api. |
| 245 |
| 246 Official API documentation: https://developers.google.com/google-apps/groups-mig
ration/ |
| 247 |
| 248 ####  Groups Se
ttings API - groupssettings v1 |
| 249 |
| 250 Lets you manage permission levels and related settings of a group. |
| 251 |
| 252 Official API documentation: https://developers.google.com/google-apps/groups-set
tings/get_started |
| 253 |
| 254 ####  Google Id
entity Toolkit API - identitytoolkit v3 |
| 255 |
| 256 Help the third party sites to implement federated login. |
| 257 |
| 258 Official API documentation: https://developers.google.com/identity-toolkit/v3/ |
| 259 |
| 260 ####  Enterpris
e License Manager API - licensing v1 |
| 261 |
| 262 Licensing API to view and manage license for your domain. |
| 263 |
| 264 Official API documentation: https://developers.google.com/google-apps/licensing/ |
| 265 |
| 266 ####  Goo
gle Maps Engine API - mapsengine v1 |
| 267 |
| 268 The Google Maps Engine API allows developers to store and query geospatial vecto
r and raster data. |
| 269 |
| 270 Official API documentation: https://developers.google.com/maps-engine/ |
| 271 |
| 272 ####  Google Mi
rror API - mirror v1 |
| 273 |
| 274 API for interacting with Glass users via the timeline. |
| 275 |
| 276 Official API documentation: https://developers.google.com/glass |
| 277 |
| 278 ####  Google OA
uth2 API - oauth2 v2 |
| 279 |
| 280 Lets you access OAuth2 protocol related APIs. |
| 281 |
| 282 Official API documentation: https://developers.google.com/accounts/docs/OAuth2 |
| 283 |
| 284 ####  Orkut API
- orkut v2 |
| 285 |
| 286 Lets you manage activities, comments and badges in Orkut. More stuff coming in t
ime. |
| 287 |
| 288 Official API documentation: http://code.google.com/apis/orkut/v2/reference.html |
| 289 |
| 290 ####  PageSp
eed Insights API - pagespeedonline v1 |
| 291 |
| 292 Lets you analyze the performance of a web page and get tailored suggestions to m
ake that page faster. |
| 293 |
| 294 Official API documentation: https://developers.google.com/speed/docs/insights/v1
/getting_started |
| 295 |
| 296 ####  Google+ AP
I - plus v1 |
| 297 |
| 298 The Google+ API enables developers to build on top of the Google+ platform. |
| 299 |
| 300 Official API documentation: https://developers.google.com/+/api/ |
| 301 |
| 302 ####  Google+ Do
mains API - plusDomains v1 |
| 303 |
| 304 The Google+ API enables developers to build on top of the Google+ platform. |
| 305 |
| 306 Official API documentation: https://developers.google.com/+/domains/ |
| 307 |
| 308 ####  Pr
ediction API - prediction v1.6 |
| 309 |
| 310 Lets you access a cloud hosted machine learning service that makes it easy to bu
ild smart apps |
| 311 |
| 312 Official API documentation: https://developers.google.com/prediction/docs/develo
per-guide |
| 313 |
| 314 ####  QPX Expre
ss API - qpxExpress v1 |
| 315 |
| 316 Lets you find the least expensive flights between an origin and a destination. |
| 317 |
| 318 Official API documentation: http://developers.google.com/qpx-express |
| 319 |
| 320 ####  Enterpris
e Apps Reseller API - reseller v1 |
| 321 |
| 322 Lets you create and manage your customers and their subscriptions. |
| 323 |
| 324 Official API documentation: https://developers.google.com/google-apps/reseller/ |
| 325 |
| 326 ####  Google Si
te Verification API - siteVerification v1 |
| 327 |
| 328 Lets you programatically verify ownership of websites or domains with Google. |
| 329 |
| 330 Official API documentation: https://developers.google.com/site-verification/ |
| 331 |
| 332 ####  C
loud Storage API - storage v1 |
| 333 |
| 334 Lets you store and retrieve potentially-large, immutable data objects. |
| 335 |
| 336 Official API documentation: https://developers.google.com/storage/docs/json_api/ |
| 337 |
| 338 ####  Tasks API
- tasks v1 |
| 339 |
| 340 Lets you manage your tasks and task lists. |
| 341 |
| 342 Official API documentation: https://developers.google.com/google-apps/tasks/firs
tapp |
| 343 |
| 344 ####  Transl
ate API - translate v2 |
| 345 |
| 346 Lets you translate text from one language to another |
| 347 |
| 348 Official API documentation: https://developers.google.com/translate/v2/using_res
t |
| 349 |
| 350 ####  URL Short
ener API - urlshortener v1 |
| 351 |
| 352 Lets you create, inspect, and manage goo.gl short URLs |
| 353 |
| 354 Official API documentation: http://code.google.com/apis/urlshortener/v1/getting_
started.html |
| 355 |
| 356 ####  Google
Fonts Developer API - webfonts v1 |
| 357 |
| 358 The Google Fonts Developer API. |
| 359 |
| 360 Official API documentation: https://developers.google.com/fonts/docs/developer_a
pi |
| 361 |
| 362 ####  YouTube
Data API - youtube v3 |
| 363 |
| 364 Programmatic access to YouTube features. |
| 365 |
| 366 Official API documentation: https://developers.google.com/youtube/v3 |
| 367 |
| 368 ####  YouTube
Analytics API - youtubeAnalytics v1 |
| 369 |
| 370 Retrieve your YouTube Analytics reports. |
| 371 |
| 372 Official API documentation: http://developers.google.com/youtube/analytics/ |
| 373 |
OLD | NEW |