Created
July 30, 2014 19:44
-
-
Save underscorephil/9405e0295405f0e005d5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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