googleapis / googleapis/google-api-nodejs-client
No inapp products consume api present in the library
- 主要言語
- TypeScript
- スター
- 12.2k
- フォーク
- 2k
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 24
説明
Thanks for stopping by to ask us a question! Please make sure to include:
- I needs to acknowledge the in app purchase from server side, as per the android publisher v3.ts code i can see there is a
- androidpublisher.purchases.products.consume api but when i am hitting from the api
- i am getting following error
- This is my code
-const res = await androidpublisher.purchases.products.consume({
packageName: "XXXX.XXX.XXX",
productId: obj.sku,
token: obj.purchaseToken,
requestBody: {
},
});
-2023-05-01T07:01:43: TypeError: **androidpublisher.purchases.products.consume is not a function
2023-05-01T07:01:43: at Object.exports.ackowledgeConsume (/home/ubuntu/****/website/google/purchase.js:60:59)
2023-05-01T07:01:43: at processTicksAndRejections (internal/process/task_queues.js:95:5)
2023-05-01T07:01:43: at async /home/ubuntu/kanganweb/website/routes/web-routes.js:376:34**
I can see similar api in Java and Python library
**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.
コントリビューションガイド
調査の方向性
まず、website/google/purchase.js に示されている Android Publisher v3 クライアントの使用箇所と、routes/web-routes.js からの呼び出しを追跡し、利用可能な products メソッドと報告されている consume 呼び出しを比較します。Node.js クライアントが要求された products consume 操作を公開しているか、その欠如とサポートされている代替手段を明確に文書化していれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- node.js, typescript
- 領域
- api, backend
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100