Skip to content

Instantly share code, notes, and snippets.

@zmpeg
Created May 11, 2012 18:08
Show Gist options
  • Save zmpeg/2661415 to your computer and use it in GitHub Desktop.
Save zmpeg/2661415 to your computer and use it in GitHub Desktop.
WorkETC API SetCompany
// Convert to
$setcompany = new stdClass();
$setcompany->company = new stdClass();
$setcompany->company->Branches = new stdClass();
$setcompany->company->Branches->Branch = new stdClass();
$setcompany->company->Branches->Branch->BranchID = 0;
$setcompany->company->Branches->Branch->BranchName = "TEST TEST";
// Make call
$result = $worketc->SetCompany($setcompany);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment