Gitee.Api 1.0.2

gitee.com 的.Net SDK

Install-Package Gitee.Api -Version 1.0.2
dotnet add package Gitee.Api --version 1.0.2
<PackageReference Include="Gitee.Api" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Gitee.Api --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
                SDK.client_id = SdkConfig.client_id;
                SDK.client_secret = SdkConfig.client_secret;
                var client = await SDK.LoginAsync(SdkConfig.username, SdkConfig.password);
                var g = await client.CreateGists("test.txt", "test code", "测试代码", true);
                var g2 = await client.CreateGists("test1.txt", "test code1", "测试代码", false);

                var user = await client.GetUserAsync();
                var poject = await client.GetReposAsync(1, 20);
                var ooox = await SDK.RefreshToken(client.Token.refresh_token);
                var oooxxx = await ooox.GetUserAsync();
                var o = SDK.ContinueByToken(ooox.Token.refresh_token, ooox.Token.access_token, ooox.Token.Expires);
                var oxx = await o.GetUserAsync();
                //   await client.CreateRepoAsync("test" + DateTime.Now.ToString("yyyyMMddHHmmss"), DateTime.Now.ToString(), true);
                await client.CreateRepoAsync("testpublic1122211", "", false);
                SDK.client_id = SdkConfig.client_id;
                SDK.client_secret = SdkConfig.client_secret;
                var client = await SDK.LoginAsync(SdkConfig.username, SdkConfig.password);
                var g = await client.CreateGists("test.txt", "test code", "测试代码", true);
                var g2 = await client.CreateGists("test1.txt", "test code1", "测试代码", false);

                var user = await client.GetUserAsync();
                var poject = await client.GetReposAsync(1, 20);
                var ooox = await SDK.RefreshToken(client.Token.refresh_token);
                var oooxxx = await ooox.GetUserAsync();
                var o = SDK.ContinueByToken(ooox.Token.refresh_token, ooox.Token.access_token, ooox.Token.Expires);
                var oxx = await o.GetUserAsync();
                //   await client.CreateRepoAsync("test" + DateTime.Now.ToString("yyyyMMddHHmmss"), DateTime.Now.ToString(), true);
                await client.CreateRepoAsync("testpublic1122211", "", false);

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.2 139 9/17/2019
1.0.1 64 9/17/2019
1.0.0 127 3/19/2019