Skip to content

Instantly share code, notes, and snippets.

@underscorephil
Created September 9, 2013 15:48
Show Gist options
  • Save underscorephil/6497533 to your computer and use it in GitHub Desktop.
Save underscorephil/6497533 to your computer and use it in GitHub Desktop.
import SoftLayer.API
from pprint import pprint as pp
apiUsername = ''
apiKey = ''
client = SoftLayer.Client(
username=apiUsername,
api_key=apiKey,
)
subject_id = 1181
assigned_user_id =
new_ticket = {
'subjectId': subject_id,
'assignedUserId': assigned_user_id,
}
result = client['Ticket'].createStandardTicket(new_ticket, 'Testing ticket creation')
pp(result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment