Created
January 13, 2014 18:05
-
-
Save underscorephil/8405029 to your computer and use it in GitHub Desktop.
Create notification subscribers
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 SoftLayer.API | |
from pprint import pprint as pp | |
api_username = '' | |
api_key = '' | |
client = SoftLayer.Client( | |
username=api_username, | |
api_key=api_key | |
) | |
newNotification = [{ | |
'guestId': 1234, | |
'userId': 12345 | |
}] | |
result = client['SoftLayer_User_Customer_Notification_Virtual_Guest'].createObjects(newNotification) | |
pp(result) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment