I tried running this after loading NeoJSON and�� I got a DNU on 'ZnEntity json:' in a new Pharo 6.1 64 bit on Mac OS. What else needs to be loaded?

On Mon, Jan 29, 2018 at 11:40 AM, Sven Van Caekenberghe <sven@stfx.eu> wrote:
Hi,

Just a little snippet I wanted to share. Pushover (https://pushover.net) is a general service that delivers notifications to iOS, Android and desktop devices via an API (and an email gateway as well). It is really easy to get started with.

This is how you do it from Pharo:

ZnClient new
�� systemPolicy;
�� url: 'https://api.pushover.net/1/messages.json';
�� accept: ZnMimeType applicationJson;
�� contentReader: [ :entity | NeoJSONObject fromString: entity contents ];
�� contentWriter: [ :object | ZnEntity json: object asString ];
�� contents: (NeoJSONObject new��
�� �� �� �� �� �� �� ��token: 'ax4o55o6g5imb1a6st3m9x34hqu44z';��
�� �� �� �� �� �� �� ��user: 'uv2fovx3f9sp3rgssrupvjgvdo8quw';��
�� �� �� �� �� �� �� ��title: 'Test 3';��
�� �� �� �� �� �� �� ��message: ('This is a test @ {1} by {2}.' format: {��
�� �� �� �� �� �� �� �� �� �� �� �� �� �� DateAndTime now. SystemVersion current }));
�� post.

It will look like this on your mobile device (just seconds later):


Nothing special, but pretty handy.

Sven