Difference between revisions of "Template:Json Practice Block - CSharp"

From Updox API
Jump to: navigation, search
 
(9 intermediate revisions by one user not shown)
Line 1: Line 1:
<syntaxhighlight lang="csharp" line start="100" enclose="div">
+
      accountId = "NewPracticeId",  <span style="color:green">// required</span>
  public void TalkToUpdox() {
+
      name = "Family Practice", <span style="color:green">//required</span>
    string json = new JavaScriptSerializer().Serialize(new {
+
      address1 = "94 N. High St",
                accountId = "NewPracticeId",
+
      address2 = "Suite 100",
                name = "NewPracticeName",
+
      city = "Dublin",
                address1 = "",
+
      state = "OH",
                address2 = "",
+
      postal = "43017",
                city = "",
+
      phone = "6147988170",
                state = "",
+
      fax = "6144074411",
                postal = "",
+
      timeZone = "America/Chicago",
                phone = "",
+
      websiteAddress = "practice_website",
                fax = "",
+
      directDomain = "new_practice",
                directAddress = "",
+
      directAddress = "practice_direct",
                timeZone = "",
+
      active = "true", <span style="color:green">//recommended, defaults to "false"</span>
                websiteAddress = "",
+
                active = "true",
+
</syntaxhighlight>
+

Latest revision as of 16:28, 20 November 2013

     accountId = "NewPracticeId",  // required
     name = "Family Practice",  //required
     address1 = "94 N. High St",
     address2 = "Suite 100",
     city = "Dublin",
     state = "OH",
     postal = "43017",
     phone = "6147988170",
     fax = "6144074411",
     timeZone = "America/Chicago",
     websiteAddress = "practice_website",
     directDomain = "new_practice",
     directAddress = "practice_direct",
     active = "true",  //recommended, defaults to "false"