Export API

I tried to use the Export API, but when I try to GET or POST, it return me
forbidden status, I guess It have to be authorized first only can export?

I'm using ROR technology.

Hi,

Yes you have to authenticate with something like digest auth in order to
use the APIs.

Using curl this would looks something like this:

curl --digest -u "user:password" [url]

Cory

··· On Fri, Jul 26, 2013 at 10:24 PM, Nicholas Ng wrote:

I tried to use the Export API, but when I try to GET or POST, it return me
forbidden status, I guess It have to be authorized first only can export?

I'm using ROR technology.

--
You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Can I pass extra params in the API in order to get authorized at once?

··· On Saturday, July 27, 2013 10:24:18 AM UTC+8, Nicholas Ng wrote: > > I tried to use the Export API, but when I try to GET or POST, it return me > forbidden status, I guess It have to be authorized first only can export? > > I'm using ROR technology. >

Hi Nicholas,

Not currently, though digest auth should be supported by most modern web
tools.

Cory

··· On Sun, Jul 28, 2013 at 10:16 AM, Nicholas Ng wrote:

Can I pass extra params in the API in order to get authorized at once?

On Saturday, July 27, 2013 10:24:18 AM UTC+8, Nicholas Ng wrote:

I tried to use the Export API, but when I try to GET or POST, it return
me forbidden status, I guess It have to be authorized first only can export?

I'm using ROR technology.

--
You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

oic,thanks...

··· On Sun, Jul 28, 2013 at 11:15 PM, Cory Zue wrote:

Hi Nicholas,

Not currently, though digest auth should be supported by most modern web
tools.

Cory

On Sun, Jul 28, 2013 at 10:16 AM, Nicholas Ng nichthinkof30@gmail.comwrote:

Can I pass extra params in the API in order to get authorized at once?

On Saturday, July 27, 2013 10:24:18 AM UTC+8, Nicholas Ng wrote:

I tried to use the Export API, but when I try to GET or POST, it return
me forbidden status, I guess It have to be authorized first only can export?

I'm using ROR technology.

--
You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to a topic in the
Google Groups "commcare-users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/commcare-users/U0UvBZoUPhQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Another option is to do an initial login programmatically and get the
session id from the returned cookie.

From there, in curl, curl --cookie "sessionid=123123213213"
https://server/some/url

Issue here is you then will need to manage the sessionID from here on out
once logged in.

··· On Sun, Jul 28, 2013 at 9:07 PM, Nicholas Ng wrote:

oic,thanks...

On Sun, Jul 28, 2013 at 11:15 PM, Cory Zue czue@dimagi.com wrote:

Hi Nicholas,

Not currently, though digest auth should be supported by most modern web
tools.

Cory

On Sun, Jul 28, 2013 at 10:16 AM, Nicholas Ng nichthinkof30@gmail.comwrote:

Can I pass extra params in the API in order to get authorized at once?

On Saturday, July 27, 2013 10:24:18 AM UTC+8, Nicholas Ng wrote:

I tried to use the Export API, but when I try to GET or POST, it return
me forbidden status, I guess It have to be authorized first only can export?

I'm using ROR technology.

--
You received this message because you are subscribed to the Google
Groups "commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to a topic in the
Google Groups "commcare-users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/commcare-users/U0UvBZoUPhQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
commcare-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.