Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing with .NET CLI and nuget package manager does not work #3

Closed
dlatikaynen opened this issue Jan 23, 2025 · 2 comments
Closed

Comments

@dlatikaynen
Copy link

Hi,

I'm following the readme. When I attempt installation in .NET CLI,

dotnet add package seven-api

this happens:

info : Adding PackageReference for package 'seven-api' into project 'C:\lc\core\src\Services\Messaging\Messaging.API\Messaging.API.csproj'.
info : GET https://api.nuget.org/v3/registration5-gz-semver2/seven-api/index.json
info : NotFound https://api.nuget.org/v3/registration5-gz-semver2/seven-api/index.json 344ms
info : GET https://api.nuget.org/v3/registration5-gz-semver2/seven-api/index.json
info : NotFound https://api.nuget.org/v3/registration5-gz-semver2/seven-api/index.json 219ms
error: There are no versions available for the package 'seven-api'.

When I attempt installation using the nuget package manager,

Install-Package seven-api

this happens:

Install-Package : Unable to find package 'seven-api'

Expected: The package is installed.

@matthiez
Copy link
Contributor

Hi @dlatikaynen,
thanks for reporting.
We are working on the issue and will get back to you next week.

Please stay tuned.

@matthiez
Copy link
Contributor

Hi @dlatikaynen,
we finally managed to publish [email protected].

Usage

using Client = seven_library.Api.Client;

var apiKey = Environment.GetEnvironmentVariable("SEVEN_API_KEY");
var client = new Client(apiKey);
var balance = await client.Balance.Get();
Console.WriteLine($"Current account balance: {balance.Amount} {balance.Currency}");

Documentation needs some improvements. We are working on it.

Hope this helps for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants