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/30/2013 8:00:00 PM    
Public Tags:
Categories:
Date Created: 05/28/2013 11:50:08 AM by 197a9512-0cd3-409c-be89-5487515cfafa
Home | Services | Support | Billing | Account | FAQ - Frequently Asked Questions | Streaming Media Services | Terms & Conditions | Privacy Policy
Copyright © 1999 - 2024 NetroMedia.com All rights reserved | Your current IP address is: 18.224.30.118