Show Posts


Messages - pyroxide

Pages: [1]
1
API Development / Re: not logged in?
« on: June 15, 2015, 03:53:29 PM »
I probably just don't understand callback.

2
API Development / Re: not logged in?
« on: June 15, 2015, 03:08:28 PM »
I tried allowing cross-domain via htaccess.  Headers reflected change, but I am still getting "401 Unauthorized". Perhaps I need to change a file in the shopping cart?

I'm coding everything in C#, not JQuery or JavaScript. I have no idea if callback is even possible in this case as my parser (SimpleJSON) does not have this feature.

3
API Development / Re: not logged in?
« on: June 11, 2015, 01:33:33 PM »
Same domain. No callback.

EDIT: The requests are being sent from either mobile devices or my home computer.

4
API Development / Re: not logged in?
« on: June 11, 2015, 07:58:23 AM »
using SSL

this is my log:

POSTed login form:
URL: https*
rt=a/account/login
email=my e-mail
password=password
UnityEngine.MonoBehaviour:print(Object)
<PostLogin>c__Iterator4:MoveNext() (at Assets/Scripts/RequestController.cs:791)

{"status":1,"success":"Logged in","token":"43c3ed78a8b12bc7d01f6193cd47cafe"}
UnityEngine.MonoBehaviour:print(Object)
<PostLogin>c__Iterator4:MoveNext() (at Assets/Scripts/RequestController.cs:792)

token=43c3ed78a8b12bc7d01f6193cd47cafe
UnityEngine.MonoBehaviour:print(Object)
<PostLogin>c__Iterator4:MoveNext() (at Assets/Scripts/RequestController.cs:806)

verifying still logged in..
UnityEngine.MonoBehaviour:print(Object)
<PostLogin>c__Iterator4:MoveNext() (at Assets/Scripts/RequestController.cs:814)

POSTed login form:
URL: https*
rt=a/account/login
token=43c3ed78a8b12bc7d01f6193cd47cafe
UnityEngine.MonoBehaviour:print(Object)
<PostLogin>c__Iterator4:MoveNext() (at Assets/Scripts/RequestController.cs:821)

HEADERS: STATUS=HTTP/1.1 401 Unauthorized
DATE=Thu, 11 Jun 2015 11:48:29 GMT
SERVER=Apache
X-POWERED-BY=PHP/5.3.29
EXPIRES=Thu, 19 Nov 1981 08:52:00 GMT
CACHE-CONTROL=no-store, no-cache, must-revalidate, post-check=0, pre-check=0
PRAGMA=no-cache
ACCESS-CONTROL-ALLOW-ORIGIN=
ACCESS-CONTROL-ALLOW-CREDENTIALS=true
SET-COOKIE=currency=USD; expires=Sat, 11-Jul-2015 11:48:29 GMT; path=/; domain=www.*.com
TRANSFER-ENCODING=chunked
CONTENT-TYPE=application/json

UnityEngine.Debug:Log(Object)
<PostLogin>c__Iterator4:MoveNext() (at Assets/Scripts/RequestController.cs:832)

{"status":0,"request":"unauthorized"}
UnityEngine.MonoBehaviour:print(Object)
<PostLogin>c__Iterator4:MoveNext() (at Assets/Scripts/RequestController.cs:834)

5
API Development / Re: not logged in?
« on: June 10, 2015, 02:35:00 PM »
I discovered that the test_api.php works on my web server but I am still having trouble with the login from my app.

6
API Development / not logged in?
« on: June 10, 2015, 07:48:19 AM »
I'm having trouble with my customer API. Immediately after getting a successful login response and parsing the token from it, the cart says that I am not logged in. I'm using version 1.2.2.

my log is attached.

7
API Development / Re: formatting for options using API
« on: June 04, 2015, 06:27:37 PM »
aha! i found the solution. the format is multiple instances of option[ID]=VALUE . i had to look at the method params in the api test to find that out. never knew that such a page existed. it was very helpful.

in C# i'm using the following:

for (int i=0; i<options.Count; i++)
{
   frmProduct.AddField("option[" + options[i].ToString() + ']', optionValues[i].ToString());
}

where options and optionValues are both instances of System.Collections.ArrayList

8
API Development / formatting for options using API
« on: June 03, 2015, 03:28:34 PM »
currently developing an app as a front-end of my shopping cart. how am i supposed to format the options when adding an item to the customer's cart (rt=a/checkout/cart)?

Pages: [1]

Powered by SMFPacks Social Login Mod