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

The type or namespace name 'StandardAuth' could not be found #239

Open
joystiller opened this issue Mar 29, 2022 · 1 comment
Open

The type or namespace name 'StandardAuth' could not be found #239

joystiller opened this issue Mar 29, 2022 · 1 comment
Labels
question Quesion regarding Fortnox API, not an issue in SDK

Comments

@joystiller
Copy link

Hi!

I'm going around in circles here, I can't get the Fortnox package to work. This has probably more to do with my lack of programming experience than it has anything to do with the API-SDK, but perhaps anyone here can help?

I installed the NuGet package, both from the terminal and from the NuGet extension packet manager, and it's visible in the .csproj file. Here my code:

`using System;
using Fortnox;

// See https://aka.ms/new-console-template for more information
//Console.WriteLine("Hello, World!");

var authorization = new StandardAuth("your_oauth_accesstoken");`

And here's the terminal error:

`/Users/antonsoderberg/Documents/code/fortnox2/Program.cs(7,25): error CS0246: The type or namespace name 'StandardAuth' could not be found (are you missing a using directive or an assembly reference?) [/Users/antonsoderberg/Documents/code/fortnox2/fortnox2.csproj]

The build failed. Fix the build errors and run again.`

Anyone know what I'm doing wrong?

@richardrandak
Copy link
Collaborator

Hello! First of all, using Fortnox; is wrong, it should be using Fortnox.SDK.Authorization;
What code editor are you using? It should show you these errors.

@richardrandak richardrandak added the question Quesion regarding Fortnox API, not an issue in SDK label Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Quesion regarding Fortnox API, not an issue in SDK
Projects
None yet
Development

No branches or pull requests

2 participants