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 <<a href="mailto:jrconlin@gmail.com">jrconlin@gmail.com</a>> 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'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's available for nearly every platform known. <br>
<br>
It's pretty easy to use on the command line, so sending a PUT
would be:<br>
<br>
curl -X PUT -d "version=123"
<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 "data" 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 <<a href="javascript:_e(%7B%7D,'cvml','lholmqui@redhat.com');" target="_blank">lholmqui@redhat.com</a>>
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
"installable" for CLI use, similar to how you can also use
plugman/cordova cli'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 <<a>matzew@apache.org</a>> 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 'sender' 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 "SimplePushClient.java"
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,'cvml','aerogear-dev@lists.jboss.org');" 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>