title: Clipping Magic API
body: <p>I am currently trying to use the api for <a href="https://clippingmagic.com/api/" rel="nofollow">clippingmagic</a>  but I am running into a problem with defining their callback function. Here is the code I have currently for it. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="https://clippingmagic.com/api/v1/ClippingMagic.js" type="text/javascript"&gt;
  &lt;/script&gt;
  &lt;script type="text/javascript"&gt;
    var errorsArray = ClippingMagic.initialize({apiId: ####});
    if (errorsArray.length &gt; 0) alert("Sorry, your browser is missing some required features: \n\n " + errorsArray.join("\n "));
    ClippingMagic.edit({
      "image" : {
        "id" : ######,
        "secret" : "#############"
      }
    }, callback);
    &lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p></p>
  
  <p>If anyone has worked with their api and can help me, that would be greatly appreciated. </p>