Kamis, 16 Desember 2010

Richer photo support in the Google Buzz API


Anda sudah bisa hanya menyertakan foto di posting Buzz Google menggunakan APIBuzz. Hari ini kami membuat lebih mudah untuk menambahkan foto ke posting Buzz.Selain itu, dengan menggunakan Picasa sebagai foto repositori, sekarang Andaakan dapat menggunakan API Buzz untuk mengambil segala macam tindakan lain atas nama pengguna:

Buat album baru
Dapatkan album
Update metadata album's
Hapus album
Daftar album pengguna
Upload foto baru
Dapatkan foto
Update metadata foto's
Hapus foto
Daftar pengguna foto
Mengakses entri foto melalui API Buzz semudah mendapatkan suatu kegiatan.Bentuk untuk mengambil suatu kegiatan :



https://www.googleapis.com/buzz/v1/activities/{userId}/@self/{activityId}


Dengan hanya beberapa perubahan, kita mendapatkan formulir untuk mengambilfoto


https://www.googleapis.com/buzz/v1/photos/{userId}/@self/{albumId}/@photos/{photoId}


Dengan data hidup, akan terlihat seperti URL berikut:


https://www.googleapis.com/buzz/v1/photos/farago/@self/5251364904403459921/@photos/5251366163678993586?alt=json&prettyprint=true

Browse ke alamat tersebut dan Anda akan mendapatkan data yang akan mengarahke foto ini Picasa



The read-only endpoints will return public data without authentication. For authenticated access to the photos endpoints, you must be granted an OAuth token for the user with both the Buzz and Photos API scopes. For existing users, you will need to discard the OAuth tokens scoped to the Buzz API and request authorization to both scopes. More details can be found on the Google Buzz API documentation site.

Photos are an essential part of social applications. We expect these new capabilities will allow you to enrich your user’s experience with a minimum of fuss. As always, please swing by the Developer Forum to let us know what you think. And if you haven’t already, start using the APIs console to track your API usage and other coolness.

Tidak ada komentar:

Berita Terhangat | Promosikan Halaman Anda Juga
Related Posts Plugin for WordPress, Blogger...