Active
Project:
Ubercart Services
Version:
6.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Nov 2010 at 17:03 UTC
Updated:
23 Nov 2010 at 18:42 UTC
Hello,
Thanks for the very useful module.
I am trying to use the uc_order.getOrdersBetween method. But I keep getting Access Denied. I may not be passing the Start Time correctly. I know that says it is supposed to be an int. but based on what? How do I convert a data to an int that the service understands?
Thanks
Todd
Comments
Comment #1
toddgeist commentedCorrection: the call is to "uc_order.getAllOrdersBetween" I had left out the "all" in the post.
Comment #2
toddgeist commentedIs this just the number of seconds since the start of the unix epoch?
I have been trying that, but it still gives me Access denied. Calls to other uc_services work just fine.
Checking the log I see that there is a SQL error
So I guess there is an issue with permissions, but I don't know how to fix it.
I also don't know why calls to uc_order.getAllOrdersBetween fail, but calls to uc_order.getOrders works just fine. Looking at the module code, I don't see much in the way of a difference
Comment #3
toddgeist commentedSo even using the services browser I get Access denied if I try to pass anything into the endtime parameter of the method uc_order.getAllOrdersBetween call
why?