1

我需要将位置数据读/写到 Google Business API。不幸的是,谷歌似乎只为 Java 提供了适当的 API 包装器: https ://developers.google.com/my-business/content/location-data

例如,

public static void updateLocation(String phone, String name) throws Exception {
    Location location = new Location()
        .setPrimaryPhone(phone);

    Mybusiness.Accounts.Locations.Patch updateLocation =
        mybusiness.accounts().locations().patch(name, location);
    updateLocation.setFieldMask("primary_phone");
    updateLocation.setLanguageCode("en-AU");
    Location updatedLocation = updateLocation.execute();

    System.out.printf("Updated Location:\n%s", updatedLocation);
  }

我正在为 C# 寻找类似的东西。提前致谢。

4

1 回答 1

1

我还没有真正使用它,我们最终使用了另一个系统,但是有一个普通 REST 的参考,所以你可以使用任何语言和库https://developers.google.com/my-business/reference/rest/

于 2019-04-01T19:05:48.900 回答