Yep, works w/ UnifiedPush, and we use thst for testing as well<div><br></div><div><br></div><div>However we need/have java libs fir sending, hence turning that into less verbose CLIs is just a few lines of code :-)<span></span><br>
<br>On Monday, February 3, 2014, JR Conlin &lt;<a href="mailto:jrconlin@gmail.com">jrconlin@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div>One other note:<br>
      <br>
      I don&#39;t know if this would work for UnifiedPush, but for testing
      remote REST calls, I tend to use curl<br>
      <br>
      <a href="http://curl.haxx.se/" target="_blank">http://curl.haxx.se/</a><br>
      <br>
      It&#39;s available for nearly every platform known. <br>
      <br>
      It&#39;s pretty easy to use on the command line, so sending a PUT
      would be:<br>
      <br>
      curl -X PUT -d &quot;version=123&quot;
      <a href="http://push.services.mozilla.org/longStringOfCrap" target="_blank">http://push.services.mozilla.org/longStringOfCrap</a><br>
      <br>
      where -X specifies the method to use<br>
      -d specifies the &quot;data&quot; to send in the request <br>
      <br>
      Curl is amazingly powerful once you dig into it and can save a lot
      of time. Just figured I should share the knowledge. <br>
      <br>
      On 2014/2/3 10:36 AM, Matthias Wessendorf wrote:<br>
    </div>
    <blockquote type="cite"><br>
      <br>
      On Monday, February 3, 2014, Lucas Holmquist &lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;lholmqui@redhat.com&#39;);" target="_blank">lholmqui@redhat.com</a>&gt;
      wrote:<br>
      <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
        <div style="word-wrap:break-word">looks pretty neat,
          <div><br>
          </div>
          <div>i think we can also adapt the node.js versions to also be
            &quot;installable&quot; for CLI use,  similar to how you can also use
            plugman/cordova cli&#39;s api and not just on the command line</div>
        </div>
      </blockquote>
      <div><br>
      </div>
      <div><br>
      </div>
      I had brew in mind for this; will look into this later this<span></span>
      week<br>
      <div> </div>
      <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
        <div style="word-wrap:break-word">
          <div><br>
            <div>
              <div>On Feb 3, 2014, at 1:18 PM, Matthias Wessendorf &lt;<a>matzew@apache.org</a>&gt; wrote:</div>
              <br>
              <blockquote type="cite">
                <div dir="ltr">Hi,
                  <div><br>
                  </div>
                  <div>while thinking about potential refactorings, and
                    moving some of the java &#39;sender&#39; code into
                    subprojects I played w/ the ideas of also offering
                    CLI for:</div>
                  <div><br>
                  </div>
                  <div>
                    * SimplePush</div>
                  <div>* UnifiedPush</div>
                  <div><br>
                  </div>
                  <div>An early (hacky) version of a SimplePush CLI is
                    located here:</div>
                  <div><br>
                  </div>
                  <div><a href="https://github.com/matzew/simplepush-cli" target="_blank">https://github.com/matzew/simplepush-cli</a><br>
                  </div>
                  <div><br>
                  </div>
                  <div>The neat thing - I think - you can ignore the
                    nasty version string, in that case the current
                    timestamp is used.  The CLI has been tested w/ our
                    Quickstart on SimplePush ([1])</div>
                  <div><br>
                  </div>
                  <div>The actual code for the &quot;SimplePushClient.java&quot;
                    file could be than also be reused inside of the
                    UnifiedPush Server - my current code here is very
                    much the code from the UnifiedPush Server (except
                    here I am using OKHttp)</div>
                  <div><br>
                  </div>
                  <div>thoughts?</div>
                  <div><br>
                  </div>
                  <div>-Matthias</div>
                  <div><br>
                  </div>
                  <div>[1] <a href="https://github.com/aerogear/aerogear-simplepush-quickstart" target="_blank">https://github.com/aerogear/aerogear-simplepush-quickstart</a></div>
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                  <div>-- <br>
                    Matthias Wessendorf <br>
                    <br>
                    blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
                    sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
                    twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
                  </div>
                </div>
                _______________________________________________<br>
                aerogear-dev mailing list<br>
                <a>aerogear-dev@lists.jboss.org</a><br>
                <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></blockquote>
            </div>
            <br>
          </div>
        </div>
      </blockquote>
      <br>
      <br>
      -- <br>
      Sent from Gmail Mobile<br>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
aerogear-dev mailing list
<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;aerogear-dev@lists.jboss.org&#39;);" target="_blank">aerogear-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></pre>
    </blockquote>
    <br>
  </div>

</blockquote></div><br><br>-- <br>Sent from Gmail Mobile<br>