-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from aliyun/v1.0.x
feat:v1.0.x
- Loading branch information
Showing
30 changed files
with
1,450 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg) | ||
|
||
# YuanJing OpenAPI SDK for Go | ||
|
||
## Requirements | ||
- It's necessary for you to make sure your system have installed Go environment which version greater than 1.12.0. | ||
|
||
## Installation | ||
If you use `go mod` to manage your dependence, you can use the following command: | ||
``` | ||
go get github.com/aliyun/alibabacloud-yjopenapi-go-client 1.0.20221015-beta | ||
``` | ||
|
||
## Usage | ||
``` | ||
import ( | ||
"github.com/aliyun/alibabacloud-yjopenapi-go-client/client/api" | ||
"github.com/aliyun/alibabacloud-yjopenapi-go-client/client/model" | ||
) | ||
configuration := api.DefaultConfiguration | ||
configuration.Host = "host" | ||
configuration.AccessKey = "Your Access Key" | ||
configuration.SecretKey = "Your Secret Key" | ||
client := api.NewAPIClient(configuration) | ||
// {{Api}},{{Method}},{{Param}} is placeholder, take a look at Explain Of Usage Placeholder | ||
result, response, error := client.{{Api}}.{{Method}}(&model.{{Params}}{}) | ||
// OpenAPI TraceId | ||
traceId := response.Header.Get(client.Trace_Id) | ||
// OpenAPI Status Code | ||
statusCode := response.Header.Get(client.Result_Status) | ||
// OpenAPI result | ||
_ := result | ||
``` | ||
|
||
## Explain Of Usage Placeholder | ||
|
||
| Api | Method | Params | Result | Description | | ||
| ------------ | ------------- | ------------- | ------------- | ------------- | | ||
| *InteractiveApi* | **GetParty** | *GetPartyForms* | *InteractiveGetPartyResult* | 获取派对 | | ||
| *InteractiveApi* | **GetPartyStatus** | *GetPartyStatusForms* | *InteractiveGetPartyStatusResult* | 查询派对游戏状态 | | ||
| *InteractiveApi* | **JoinParty** | *JoinPartyForms* | *InteractiveJoinPartyResult* | 加入分配席位 | | ||
| *InteractiveApi* | **KickOutUser** | *KickOutUserForms* | *InteractiveKickOutUserResult* | 踢出派对 | | ||
| *InteractiveApi* | **ModifySeats** | *ModifySeatsForms* | *InteractiveModifySeatsResult* | 修改席位 | | ||
| *InteractiveApi* | **ShutDownParty** | *ShutDownPartyForms* | *InteractiveShutDownPartyResult* | 关闭派对 | | ||
| *TokenApi* | **GetTriple** | | *GetTripleResult* | 获取临时安全令牌 | | ||
|
||
## License | ||
[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0) | ||
|
||
Copyright (c) 2009-present, Alibaba Cloud All rights reserved. | ||
|
||
|
Oops, something went wrong.