{"id":18747790,"url":"https://github.com/lhlyu/appstoreserverapi","last_synced_at":"2025-07-15T04:07:16.003Z","repository":{"id":57704186,"uuid":"495268932","full_name":"lhlyu/appstoreserverapi","owner":"lhlyu","description":"App Store Server API(应用商店服务器 API)","archived":false,"fork":false,"pushed_at":"2023-04-17T09:35:44.000Z","size":22,"stargazers_count":14,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T22:36:45.845Z","etag":null,"topics":["appstore","appstore-api","appstoreserverapi"],"latest_commit_sha":null,"homepage":"https://astq-rosy.vercel.app/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lhlyu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-23T05:22:21.000Z","updated_at":"2025-04-09T09:05:34.000Z","dependencies_parsed_at":"2024-11-07T16:37:07.202Z","dependency_job_id":"bff7c37d-7ccb-40a6-8f33-c38c71ee7aec","html_url":"https://github.com/lhlyu/appstoreserverapi","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/lhlyu/appstoreserverapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lhlyu%2Fappstoreserverapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lhlyu%2Fappstoreserverapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lhlyu%2Fappstoreserverapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lhlyu%2Fappstoreserverapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lhlyu","download_url":"https://codeload.github.com/lhlyu/appstoreserverapi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lhlyu%2Fappstoreserverapi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265402403,"owners_count":23759151,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["appstore","appstore-api","appstoreserverapi"],"created_at":"2024-11-07T16:31:26.381Z","updated_at":"2025-07-15T04:07:15.960Z","avatar_url":"https://github.com/lhlyu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# appstoreserverapi\nApp Store Server API(应用商店服务器 API)\n\n## usage | 使用\n\n`go get github.com/lhlyu/appstoreserverapi`\n\n## online | 在线使用\n\n- [link](https://astq-rosy.vercel.app/)\n\n## interface | 接口\n\n```go\ntype Client interface {\n\n\t// ApiGetAllSubscriptionStatuses 获取所有的订阅状态\n\t// Get All Subscription Statuses\n\t// doc: https://developer.apple.com/documentation/appstoreserverapi/get_all_subscription_statuses\n\tApiGetAllSubscriptionStatuses(transactionId string) (*StatusResponse, error)\n\n\t// ApiLookUpOrderId 查找订单 ID\n\t// Look Up Order ID\n\t// doc: https://developer.apple.com/documentation/appstoreserverapi/look_up_order_id\n\tApiLookUpOrderId(orderId string) (*OrderLookupResponse, error)\n\n\t// ApiGetTransactionHistory 获取历史交易记录\n\t// Get Transaction History\n\t// doc: https://developer.apple.com/documentation/appstoreserverapi/get_transaction_history\n\t// desc: true then signedTransactions order by webOrderLineItemId desc\n\tApiGetTransactionHistory(transactionId string, desc bool) (*HistoryResponse, error)\n\n\t// ApiGetRefundHistory 获取退款历史\n\t// Get Refund History\n\t// doc: https://developer.apple.com/documentation/appstoreserverapi/get_refund_history\n\t// desc: true then signedTransactions order by webOrderLineItemId desc\n\tApiGetRefundHistory(transactionId string, desc bool) (*RefundLookupResponse, error)\n\n\t// ApiExtendAsubscriptionRenewalDate 延长订阅续订日期\n\t// Extend a Subscription Renewal Date\n\t// doc: https://developer.apple.com/documentation/appstoreserverapi/extend_a_subscription_renewal_date\n\tApiExtendAsubscriptionRenewalDate(transactionId string, req ExtendRenewalDateRequest) (*ExtendRenewalDateResponse, error)\n\n\t// ApiSendConsumptionInformation 发送消费信息\n\t// Send Consumption Information\n\t// doc: https://developer.apple.com/documentation/appstoreserverapi/send_consumption_information\n\tApiSendConsumptionInformation(transactionId string, req ConsumptionRequest) error\n}\n```\n\n## example | 例子\n\n```go\nfunc TestClient_GetAllSubscriptionStatuses(t *testing.T) {\n\tc, err := NewClient(\u0026Config{\n\t\tIss:      ISS,\n\t\tKid:      KID,\n\t\tBid:      BID,\n\t\tPk:       PK,\n\t\tAud:      AUD,\n\t\tExpiryIn: time.Second * 6,\n\t})\n\tif err != nil {\n\t\tt.Error(err)\n\t\treturn\n\t}\n\tr, err := c.ApiGetAllSubscriptionStatuses(\"180001239612922\")\n\tif err != nil {\n\t\tt.Error(err)\n\t\treturn\n\t}\n\tb, _ := json.Marshal(r)\n\tfmt.Println(string(b))\n}\n```\n\n- [more example](./client_test.go)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flhlyu%2Fappstoreserverapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flhlyu%2Fappstoreserverapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flhlyu%2Fappstoreserverapi/lists"}