Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

Commented Unassigned: Using Library in PowerShell [2066]

$
0
0
Been having problems using this library in PowerShell, any idea what could be wrong?

```
[reflection.assembly]::LoadFrom("C:\Tweetinvi.API.dll")
$creds = [Tweetinvi.TwitterCredentials]::CreateCredentials("<redacted>",
"<redacted>",
"<redacted>-<redacted>",
"<redacted>")

[Tweetinvi.TwitterCredentials]::Credentials = $creds

$tweet = [Tweetinvi.Tweet]::CreateTweet("test")
$tweet.Publish()
```

When ran it returns False
Comments: ** Comment from web user: Darkoperator **

got it to work, had to put it all in one line like in C#


Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>