Super, dakujem.
Kód:
<script type="text/javascript">/**
* Returns a list of reviews.
* @param locationName Name of the location to retrieve reviews for.
* @return List A list of reviews.
* @throws Exception
*/
public static List listReviews(String locationName) throws Exception {
Mybusiness.Accounts.Locatoins.Reviews.List reviewsList =
mybusiness.accounts().locations().reviews().list(locationName);
ListReviewsResponse response = accountsList.execute();
List reviews = response.getReviews();
for (Reviews review : reviews) {
System.out.println(review.toPrettyString());
}
return reviews;
}
</script>
Tu je java a co vsetko tam treba upravit?
String locationName - co tu napisat? Mesto?
Mybusiness.Accounts.Locatoins.Reviews.List - Tu? link z Google moja firma?
mybusiness.accounts().locations().reviews().list(locationName) - link na moj ucet().locations().reviews().list(mesto) ?
Dakujem, API som este nerobil.