[Fix bug 977683] Set API key on subscribe

Set API key on subscribe call if sync=='Y'
Merge pull request #25 from dpoirier/977683-set-api-key-on-subscribe-sync-y

[Fix bug 977683] Set API key on subscribe