Automating the GitHub REST API Using PowerShell

Sign in to queue

The Discussion

  • User profile image
    MChorfa

    Very interesting and informative THANK YOU !

  • User profile image
    pcgeek86

    @MChorfa: Thanks for your feedback, MChorfa!

  • User profile image
    Michael Maher

    Thanks for sharing Trevor. Can I ask about the @Headers hash table. I know you said the Authorization string needs to be Basic followed by a space.

    Is that what the zero in code blocks does?

    I'm also wondering what function the -f parameter in this hash table performs.

    Michael

  • User profile image
    pcgeek86

    @Michael Maher: Hey Michael! Thanks for the feedback. Check out .NET string formatting! That's what the the -F operator is. The {0} is used as a substitution.

  • User profile image
    Michael Maher

    Ok got it.

    I found this article which walks through it well.

    Halfway down the page - Using .NET to Format Numbers in Windows PowerShell
    https://technet.microsoft.com/en-us/library/ee692795.aspx

  • User profile image
    sup3r7

    Hi! Good video! Is it essential to have a video of you talking in the bottom right corner. Its in the way of the code. If that's a must have ,couldn't it be in the top right corner or make it smaller. / Fabio

  • User profile image
    pcgeek86

    @sup3r7:Thanks for the feedback, Fabio. I do see where the code was cut off towards the end, and I didn't intend for that. Next time I'll try to make it better. :)

    Cheers,
    Trevor Sullivan

  • User profile image
    pcgeek86

    @Michael Maher: Exactly! You've got it, mate. It's a very powerful concept, if you spend a bit of time grasping it! I primarily use it for simple substitution, but it can do much, much more. In fact, you can even write your own custom formatters!

  • User profile image
    suresh

    I am new to GitHub
    Very good video and so clear instructions. Thanks for sharing it.

Add Your 2 Cents