without spending too much time on this: In general make http requests using request, not curl.
And in your particular case look at https://github.com/mckelvey/instagram-node-lib which supports subscriptions out of the box On Wed, Nov 28, 2012 at 3:06 PM, Denis Arosquipa <[email protected]> wrote: > Hi everybody, > > I need to make a subscription with instagram with these code (I use the > free service of nodejitsu): > > var command = "curl -F 'client_id=CLIENTE_ID' -F >> 'client_secret=CLIENT_SECRET' -F 'object=user' -F 'aspect=media' -F >> 'verify_token=MY_TOKEN' -F 'callback_url= >> http://my.domain.with.jitsu/callback' >> https://api.instagram.com/v1/subscriptions/"; >> console.log('Enviando: ' + command); >> child = exec(command, function(error, stdout, stderr){ >> res.write('stdout: ' + stdout); >> >> if(error !== null) >> { res.write('stderr: ' + stderr); >> res.write('exec error: ' + error); >> } >> res.end(); >> }); > > > And result me:"Challenge Verification Failed". I don't understand how make > the subscription with node.js without curl over console. In the web mention: > > "If you run this command with your own callback_url, client_id and > client_secret you'll notice it will fail with the error: "Challenge > Verification Failed". In order to keep someone else from creating unwanted > subscriptions, we must verify that the endpoint would like this new > subscription" > > Somebody know how make it?, or some advices to make the subscriptions. > > Regards, > > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
