GET Requests to RESTful API with Powershell !

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ธ.ค. 2024

ความคิดเห็น • 20

  • @MrPowerScripts
    @MrPowerScripts  6 ปีที่แล้ว +1

    Website: mrpowerscripts.com
    Discord: discord.gg/uEBWZKq
    Patreon: patreon.com/mrpowerscripts
    SIGN UP: mrpowerscripts.com/mailing-list

  • @chrislyonm
    @chrislyonm 3 ปีที่แล้ว +2

    Just in case anyone else runs into this issue, Invoke-Request only returns the response body of a request.
    If you want the entire response, you'll have to use Invoke-WebRequest instead. Then you can check the response code to see if your request was successful or not. You'll see 200 if there were no issues.

  • @rjobaanable
    @rjobaanable 5 ปีที่แล้ว

    Thank you very much ! I am getting ConvertFrom-Json : Cannot process argument because the value of argument "name" is not valid. Change the value of the "name" argument and run the operation again.Could you help me out to solve this? Example $data '{"status":true,"status_code":200,"message":"messages.succes","data":[
    {"orderdate":"2019-11-15 09:49:02","sales":50,"revenue":6700,"":0}
    $TestObject = ConvertFrom-Json -InputObject $data
    ]}'
    I know I can replace "" but this is a part of a big json file which is downloaded from a site
    Can i maybe assign headers ?

  • @ravisudhakarpinninti9450
    @ravisudhakarpinninti9450 3 ปีที่แล้ว

    This video made my day... Thanks

  • @troller4jesus
    @troller4jesus 6 ปีที่แล้ว

    Does every URL supposed to have a /.json to get their API info?

    • @MrPowerScripts
      @MrPowerScripts  6 ปีที่แล้ว +1

      No it only works on a few of their endpoints. they have a proper API to connect and consume their data that you can find here www.reddit.com/dev/api/ but it's a bit more complicated so I chose to use the .json method for the video since it's very easy to see and show

  • @lmlmlmlm-j5j
    @lmlmlmlm-j5j 4 ปีที่แล้ว +3

    6:04 title lool

  • @sinetwo
    @sinetwo 7 ปีที่แล้ว

    Dude, great tutorial - I chuckled when I saw the ohhhhhhhhh snap! comment!

    • @MrPowerScripts
      @MrPowerScripts  7 ปีที่แล้ว

      Thanks dude. Glad you found it helpful.

  • @adnan-khan
    @adnan-khan 7 ปีที่แล้ว +2

    This is so freaking cool!!!!

  • @portentouslad5051
    @portentouslad5051 8 ปีที่แล้ว

    Great subject. Looking forward for more :)

    • @MrPowerScripts
      @MrPowerScripts  8 ปีที่แล้ว

      +Portentous Lad Thanks bro. Post requests up next. Way more fun.

    • @portentouslad5051
      @portentouslad5051 8 ปีที่แล้ว

      Will do. :)
      have no experience with anything json related so this is already highly appreciated.

    • @ashleywhitham1427
      @ashleywhitham1427 6 ปีที่แล้ว

      MrPowerScripts has

  • @karimkrouzy4568
    @karimkrouzy4568 4 ปีที่แล้ว

    Thanks you, i was stuck

  • @sceptersax
    @sceptersax 2 ปีที่แล้ว

    Most useful info about powershell or how to use a rest API for that matter, I’ve ever watched. Thank you

  • @shadaxgaming
    @shadaxgaming ปีที่แล้ว

    RIP Reddit API

  • @WilliamEllison
    @WilliamEllison 8 ปีที่แล้ว

    very cool.