2017-12-11 14 views

답변

1

는 검토가 어떻게 얻는 방법 PHP를 사용 Google_Service_MyBusiness_AccountsLocationsReviews_Resource

class Google_Service_MyBusiness_AccountsLocationsReviews_Resource extends Google_Service_Resource 
{ 

    /** 
    * Returns the specified review. This operation is only valid if the specified 
    * location is verified. Returns `NOT_FOUND` if the review does not exist, or 
    * has been deleted. (reviews.get) 
    * 
    * @param string $name The name of the review to fetch. 
    * @param array $optParams Optional parameters. 
    * @return Google_Service_MyBusiness_Review 
    */ 
    public function get($name, $optParams = array()) 
    { 
    $params = array('name' => $name); 
    $params = array_merge($params, $optParams); 
    return $this->call('get', array($params), "Google_Service_MyBusiness_Review"); 
    } 
+0

의 get 메소드를 사용하여 얻을 수 귀하의 회신을

{ "reviewId": string, "reviewer": { object(Reviewer) }, "starRating": enum(StarRating), "comment": string, "createTime": string, "updateTime": string, "reviewReply": { object(ReviewReply) }, } 

more info

보유 reviewReply 객체를 가져 응답에 developers.google.com 참조 그것? https://developers.google.com/my-business/reference/rest/v4/accounts.locations.reviews/get –

+0

에서 reviewID, location 등을 전달하는 방법을 알지 못합니다. 이름 param이 reviewID라고 생각합니다. , 설명서가 명확하지 않습니다 – madalinivascu

+0

알립니다. 감사. –