harrisonhjones / phpParticle

PHP Class for interacting with the Spark Cloud (spark.io)
24 stars 6 forks source link

Master #6

Closed devinpearson closed 9 years ago

devinpearson commented 9 years ago

changed the curl functions in to a single function. added webhooks added tokens

resolves #2, #3, #4, #5

harrisonhjones commented 9 years ago

Looks good. One point of question: Why doesn't get listToken, getToken, deleteToken used the stored access credentials (username & password) like the other functions which used the stored access token to do operations? Also, when/if it does, it should make a check to see if those credentials are defined.

harrisonhjones commented 9 years ago

Also, thanks for using __FUNCTION__. I completely forgot that magic constant existed! That's fantastic

devinpearson commented 9 years ago

Hey no worries. We can have it use the stored credentials. I didnt really give it much thought. It would be better to use the stored credentials. I tried to match your coding style as best I could.

Thought this would also be a good start as a contribution from my side as I had most of the functions in my code

harrisonhjones commented 9 years ago

You did a fantastic job. My style also isn't set in stone so I'm open to changes if you have suggestions.

I'll pull this in a then one of us can make the stored credentials change