API: Addresses

Any issue about Cyclos 4 scripting and Webservices

Moderators: hugo, alexandre, rmvanarkel

Post Reply
gustavo_san
Posts: 20
Joined: Fri Feb 21, 2014 4:44 pm

API: Addresses

Post by gustavo_san »

Hello guys,

How do i add an address for a user using the cyclos API?

Thanks

luis
Posts: 182
Joined: Fri Feb 17, 2006 11:01 am

Re: API: Addresses

Post by luis »

Hi.
Check out http://www.cyclos.org/dev/current/ws-ap ... rvice.html
The regular flow for creating a record in Cyclos is:
* Call getDataForNew. In this case, the parameters should contain the user id. See http://www.cyclos.org/dev/current/ws-ap ... arams.html
* The returining data object contains a dto, plus other interesting data you can need to fill in the object.
* Fill-in that dto, then pass it back to the save method on the service

It should do the trick.
Luis Fernando Planella Gonzalez
Cyclos development team

Post Reply