Skip to content

Commit

Permalink
Merge pull request #1 from aliyun/v1.0.x
Browse files Browse the repository at this point in the history
feat:v1.0.x
  • Loading branch information
xfslove authored Oct 21, 2022
2 parents c10a8b4 + ebf58fb commit 42bd756
Show file tree
Hide file tree
Showing 30 changed files with 1,450 additions and 0 deletions.
57 changes: 57 additions & 0 deletions README.md
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.


Loading

0 comments on commit 42bd756

Please sign in to comment.