Share via

OAuthRequest, OAuthRequestType

Vil Ignoble 21 Reputation points
2022-03-06T01:33:45.58+00:00

I am trying to make the following call in C#:

OAuthRequest request = new OAuthRequest
   {
        Type = OAuthRequestType.RequestToken,
         ConsumerKey = consumerKey,
         ConsumerSecret = consumerSecret,
         Method = "GET",
         RequestUrl = requestTokenUrl,
         Version = "1.0",
         Realm = "example.com",
         CallbackUrl = "oob",
         SignatureMethod = OAuthSignatureMethod.HmacSha1
    };

I get the error:

Severity Code Description Project File Line Suppression StateError CS0246 The type or namespace name 'OAuthRequest' could not be found (are you missing a using directive or an assembly reference?)

Do I need a .DLL, I have DevOps and what using directive do I need to make OAuthRequest build?

Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

0 comments No comments

Answer accepted by question author

maxmarutti#Talos 81 Reputation points
2022-03-06T03:21:11.117+00:00

@Vil Ignoble Twitter API?

Have a look - examples

@ GitHub A sample app using DotNetCore and the Twitter API v2

@ GitHub again topic search

Tweetinvi, an intuitive Twitter C# library for the REST and Stream API. It supports .NET, .NETCore, UAP Xamarin

or topic search

Error CS0246 The type or namespace name 'System' could not be found

search @ stackoverflow

Kind Regards

max 'A Dime a Dozen' iwillfind_him

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.