我需要将位置数据读/写到 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# 寻找类似的东西。提前致谢。