Skip to content

Instantly share code, notes, and snippets.

@underscorephil
Created January 13, 2014 18:05
Show Gist options
  • Save underscorephil/8405029 to your computer and use it in GitHub Desktop.
Save underscorephil/8405029 to your computer and use it in GitHub Desktop.
Create notification subscribers
#!/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