Form with network request?

I am trying to make an app that uses Instagram’s apis and i have run into a wall. What is form and how do i use it?

I imagine it something to do with network request.

thanks, scott

[sharedmedia=core:attachments:4388]

Before you go further with this, you really should read up on HTTP POST and how you have to construct headers and bodies for the post data and then study up on the Corona SDK “network.request()” API call.

Rob

I tried doing this https://forums.coronalabs.com/topic/56162-instagram-post-like-curl-f/?hl=curl

 local function networkRequest( event ) if (event.isError) then urlText.text = "error" else local json = require "json" local tempString2 = json.encode( event.response ) urlText.text = ":)" end end local body = "client\_secret="..clientSecret.."&grant\_type=authorization\_code&redirect\_uri="..urlRe.."&code"..InstaCode local params = {} params.body = body network.request( "https://api.instagram.com/oauth/access\_token", "POST", networkRequest )

But got error still

scott

Before you go further with this, you really should read up on HTTP POST and how you have to construct headers and bodies for the post data and then study up on the Corona SDK “network.request()” API call.

Rob

I tried doing this https://forums.coronalabs.com/topic/56162-instagram-post-like-curl-f/?hl=curl

 local function networkRequest( event ) if (event.isError) then urlText.text = "error" else local json = require "json" local tempString2 = json.encode( event.response ) urlText.text = ":)" end end local body = "client\_secret="..clientSecret.."&grant\_type=authorization\_code&redirect\_uri="..urlRe.."&code"..InstaCode local params = {} params.body = body network.request( "https://api.instagram.com/oauth/access\_token", "POST", networkRequest )

But got error still

scott