Skip to content

Instantly share code, notes, and snippets.

@underscorephil
Created July 30, 2014 19:44
Show Gist options
  • Save underscorephil/9405e0295405f0e005d5 to your computer and use it in GitHub Desktop.
Save underscorephil/9405e0295405f0e005d5 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import os
import sys
import SoftLayer.API
from pprint import pprint as pp
api_username = ''
api_key = ''
invoice_id = 1234
client = SoftLayer.Client(
username=api_username,
api_key=api_key,
)
object_mask = "mask.associatedChildren"
container = client['SoftLayer_Billing_Invoice'].getInvoiceTopLevelItems(mask=object_mask, id=invoice_id)
pp(container)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment