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 **

No Problem,

Here is the example, hope it is helpful for others :)
```

[reflection.assembly]::LoadFrom("C:\Tweetinvi.API.dll")
[Tweetinvi.TwitterCredentials]::Credentials = [Tweetinvi.TwitterCredentials]::CreateCredentials("...-...", "..", "...", "..")

[Tweetinvi.Timeline]::GetHomeTimeline() | select creator,text


```


Viewing all articles
Browse latest Browse all 4126

Trending Articles



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