Google .NET客户端库是否支持订阅和付款验证?

时间:2019-10-07 08:25:35

标签: .net google-api google-api-dotnet-client

我注意到Google在.net API列表(https://developers.google.com/api-client-library/dotnet/apis/)中有Google Play Developer API部分,但它引用了android publisher。它是否具有用于android developer API功能(例如购买和订阅验证(https://developers.google.com/android-publisher/api-ref/purchases/subscriptions))的.NET API连接器?

2 个答案:

答案 0 :(得分:0)

google .net客户端库是从发现服务api生成的。该列表https://www.googleapis.com/discovery/v1/apis中支持的所有api。我无法告诉您该页面是如何生成的,它可能是最新的,也可能不是最新的。

应该以nuget包的形式找到。

enter image description here

它似乎支持三种不同版本的android Publisher API

nuget包确实存在

  

https://www.nuget.org/packages/Google.Apis.AndroidPublisher.v3

如果API支持,则它应该可以在程序包中正常工作,并再次根据API本身的发现文档生成。

答案 1 :(得分:0)

是的,软件包https://www.nuget.org/packages/Google.Apis.AndroidPublisher.v3可以处理订阅和付款

PurchasesResource类属性ProductsSubscriptions。 这里是文档:https://developers.google.com/android-publisher/api-ref/purchases/subscriptions