Checkout our NEW Streaming Programs!
Click here to find which program is right for you
 

HOWTO: Add an Alias to your powershell profile for checking out your stream status from the CLI!

 

$endpoint = 'https://login.netromedia.com/rest.svc' 

$method = "GetAllChannelRunningStatuses" 

$json = '{"Token":"5Zzzz-0f84-37cb-8200-bcbe0f4e6c19","AccountId":"f6323616-424a-408a-9704-988fc23467"}' 

$url = $endpoint + "/" + $method 

 

function cstats { 

Invoke-RestMethod -Uri $url -Body $json -ContentType application/json -Method POST | ConvertTo-JSON 

}

 

  • Now type: .$profile to reload your profile 
  • Now you can simply type "cstats" at a prompt to call GetAllChannelRunningStatuses :) 

My output looks like this: 

I use a custom powershell profile: netrowillh@github

External Link: More Info Link:
Release Date: 05/31/2013 3:00:00 AM    
Public Tags:
Categories:
Date Created: 05/28/2013 6:50:08 PM by 197a9512-0cd3-409c-be89-5487515cfafa
Home | Services | Support | Billing | Account | FAQ - Frequently Asked Questions | Streaming Media Services | Terms & Conditions | Privacy Policy
Copyright © 1999 - 2017 NetroMedia All rights reserved | Your current IP address is: 54.145.148.103