Suryajith Chillara | 8 Jun 2012 16:49
Picon

Custom API action

Hey,

I have been trying to build a custom API action which could be used to 
upload a file and move it to a particular folder. I've been trying to 
get a custom API action working. I was following the API documentation 
and the link 
http://lalashan.mcmaster.ca/theobio/worden/index.php/Wikipedia_SF_Hackathon_notes

So my bare attempt was this. http://hastebin.com/pisivumifa.php <- this 
was the template I've lifted off from APIcongresslookup. And this is my 
setup page http://hastebin.com/bewocoxuqe.php

What else would I have to do to get it working? Is there some concrete 
reference I could look up ?

Thanks,

--

-- 
Regards,
Suryajith Chillara.
Roan Kattouw | 11 Jun 2012 07:59
Picon

Re: Custom API action

On Fri, Jun 8, 2012 at 7:49 AM, Suryajith Chillara
<suryajith1987 <at> gmail.com> wrote:
> Hey,
>
> I have been trying to build a custom API action which could be used to
> upload a file and move it to a particular folder.
How is this different from the existing upload API (action=upload)?

> What else would I have to do to get it working? Is there some concrete
> reference I could look up ?
>
You've got the skeleton stuff set up right, so now you just need to
implement the upload stuff in the execute() function. I can't really
tell you what to do there, because that's the "whatever you want your
API module to do" part. Is there any specific part of that that you
need help with?

Roan

Gmane