Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supply settings to constructor #11

Merged
merged 2 commits into from Oct 30, 2014
Merged

Conversation

lholmquist
Copy link
Member

A slight change to the node.js sender.

You now supply the settings: url, applicationId, and masterSecret in the constructor.

which makes the "options" for the send optional

@@ -0,0 +1,5 @@
{
"url": "http://localhost:8080/ag-push",
"applicationID": "aa3cfaad-8cd4-4b3c-af23-08417b879d00",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shit, this should be applicationId, let me change this

@abstractj
Copy link
Contributor

@lholmquist overall looks good +1 fearlessquist

@lholmquist
Copy link
Member Author

welp, thats good enough for me :)

@lholmquist lholmquist merged commit 0f1b047 into aerogear:master Oct 30, 2014
@matzew
Copy link
Contributor

matzew commented Oct 30, 2014

@lholmquist how about a little hint on the README ?

@lholmquist
Copy link
Member Author

@matzew about using an external file?

just update with the new syntax 0ca6006

@matzew
Copy link
Contributor

matzew commented Oct 30, 2014

about using an external file?

@lholmquist yeah, instead of inlining, I thought about actually passing in something like unifiedpush-config.json

@matzew
Copy link
Contributor

matzew commented Nov 4, 2014

@lholmquist any thoughts about showing how to pass in a file, like unifiedpush-config.json?

@lholmquist
Copy link
Member Author

@matzew i thought about it, but i think this is sort of common knowledge for people familar with doing stuff in node

@edewit
Copy link
Member

edewit commented Nov 4, 2014

even I know :)

@matzew
Copy link
Contributor

matzew commented Nov 4, 2014

ok, if we don't want to show it that's fine.

I'd have to google in case I was forced to use node. But that's ok

On Tue, Nov 4, 2014 at 2:15 PM, Lucas Holmquist notifications@github.com
wrote:

@matzew https://github.com/matzew i thought about it, but i think this
is sort of common knowledge for people familar with doing stuff in node


Reply to this email directly or view it on GitHub
#11 (comment)
.

Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf

@sebastienblanc
Copy link
Member

I would also have to google for that, I think an example can not hurt.

@lholmquist
Copy link
Member Author

@matzew
Copy link
Contributor

matzew commented Nov 4, 2014

still not sure why it's impossible to describe that on the README.

In case the aerogear homepage has that already, than fine

On Tue, Nov 4, 2014 at 2:45 PM, Lucas Holmquist notifications@github.com
wrote:

it's in the example already :)
https://github.com/aerogear/aerogear-unifiedpush-nodejs-client/blob/master/example.js#L7


Reply to this email directly or view it on GitHub
#11 (comment)
.

Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf

@edewit
Copy link
Member

edewit commented Nov 4, 2014

@matzew not impossible just very strange

@matzew
Copy link
Contributor

matzew commented Nov 4, 2014

ok, looks like no need for it :)

On Tue, Nov 4, 2014 at 3:13 PM, Erik Jan de Wit notifications@github.com
wrote:

@matzew https://github.com/matzew not impossible just very strange


Reply to this email directly or view it on GitHub
#11 (comment)
.

Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants