codaamok / psshlink Goto Github PK
View Code? Open in Web Editor NEWAn unofficial PowerShell module for Shlink (https://shlink.io), an open-source self-hosted and PHP-based URL shortener application
License: GNU General Public License v3.0
An unofficial PowerShell module for Shlink (https://shlink.io), an open-source self-hosted and PHP-based URL shortener application
License: GNU General Public License v3.0
Hey!
I see this is a pretty active project, and you keep it up to date with new Shlink versions.
Would you like PSShlink to be highlighted in the Shlink Apps landing page?
@codaamok - When running in PoSH 5.1.18362.1171 through ISE, I get the following error when using Get-ShlinkDomains
(and I'd suspect other functions as well).
Get-ShlinkDomains : Unable to find type [System.Web.HttpUtility].
At line:1 char:1
+ Get-ShlinkDomains -ShlinkServer server -ShlinkApiKey $apiKe ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Web.HttpUtility:TypeName) [Write-Error], RuntimeException
+ FullyQualifiedErrorId : TypeNotFound,Get-ShlinkDomains
Was able to fix in the process by running Add-Type -AssemblyName System.Web
after importing your module.
The call
Get-ShlinkUrl -SearchTerm "test" | Set-ShlinkUrl -ValidSince (Get-Date "2021-02-08") -ValidUntil (Get-Date "2021-02-13")
don't work correctly.
Set-ShlinkUrl whant the parameter LongUrl
In the execution of this
New-ShlinkUrl -LongUrl "https://mysite.com/" -CustomSlug "xxxxxx" -Domain "short.mysite.com" -DoNotValidateUrl -Tags "tag1","tag2" -ValidSince (Get-Date "2021-02-08") -ValidUntil (Get-Date "2021-02-13")
the link created have ValidUntil equals to ValidSince
I use Server: v2.5.2 - Client: latest
The following URL is valid but is seen as invalid by the .NET/PoSH checkers because it doesn't return a proper response:
https://www.linkedin.com/in/christopher-kibble-3aba114/
When executing the following:
New-ShlinkUrl -LongUrl "https://www.linkedin.com/in/christopher-kibble-3aba114/" -CustomSlug "lnkin" -DoNotValidateUrl
The expected behavior I believe is that it's not tested. It appears to still be checked, however, as I get the following:
New-ShlinkUrl : Provided URL https://www.linkedin.com/in/christopher-kibble-3aba114/ is invalid. Try with a different one.
At line:1 char:1
+ New-ShlinkUrl -LongUrl "https://www.linkedin.com/in/christopher-kibbl ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Write-Error], ArgumentException
+ FullyQualifiedErrorId : 400BadRequest,New-ShlinkUrl
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.