Code Monkey home page Code Monkey logo

psshlink's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿ”ญ Iโ€™m currently working on nothing open-source related, but a few projects at work which consume time!
  • ๐ŸŒฑ Iโ€™m currently learning mongodb
  • ๐Ÿค” Iโ€™m looking for help with learning more about mongodb
  • ๐Ÿ’ฌ Ask me about PowerShell, Azure, Linux, ConfigMgr (SCCM/MEMCM/MECM)
  • ๐Ÿ“ซ How to reach me: Twitter
  • ๐Ÿ˜„ Pronouns: he/him
  • โšก Fun fact: I have a Beagle named Alfie - send help ๐Ÿ†˜

psshlink's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

psshlink's Issues

DoNotValidateUrl may not be working as anticipated in New-ShlinkUrl

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

Unable to find type [System.Web.HttpUtility]

@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.

Set-ShlinkUrl in combine with Get-ShlinkUrl

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.