Description | delivers 3 newest posts. Fields: id, created, subject |
Method | GET |
URL XML | https://www.yapress.com/posts/test.xml |
URL JSON | https://www.yapress.com/posts/test.json |
Description | test upload of post with one file to yapress without login |
Method | POST |
Expected fields | data[Post][subject], data[Post][fileName], data[Post][body] |
Also expected | file for upload in format: 'gif', 'jpg', 'png', 'mp4', 'mov', 'avi' |
success response message | todo ok - guardado en posts y records table |
error response messages | several descriptive messages |
URL XML | https://www.yapress.com/posts/phone_upload.xml |
URL JSON | https://www.yapress.com/posts/phone_upload.json |
URL HTML FORM | https://www.yapress.com/posts/phone_upload |
Description | post upload with one file and authentication |
Method | POST |
authentication | Yes |
authentication error message | {"message":"not authenticated"} |
Expected fields |
|
Also expected | file for upload in format: 'gif', 'jpg', 'png', 'mp4', 'mov', 'avi' |
success response message | the post upload was successful |
error response messages | several descriptive messages |
URL XML | https://www.yapress.com/posts/post_upload.xml?email=test.yaper@yapress.com&password=MTIzNDU2 |
URL JSON | https://www.yapress.com/posts/post_upload.json?email=test.yaper@yapress.com&password=MTIzNDU2 |
Description | data related to yapper including sales, without posts. |
Method | GET |
authentication | Yes |
authentication error message | {"message":"not authenticated"} |
Example XML | https://www.yapress.com/yappers/yapper_data.xml?email=test.yaper@yapress.com&password=MTIzNDU2 |
Example JSON | https://www.yapress.com/yappers/yapper_data.json?email=test.yaper@yapress.com&password=MTIzNDU2 |
Results | Details for Yapper and his Country, Region, User, Channel = preferred Channels. The User.foto is here -> www.yapress.com/files/profiles/['User']['foto'] |
Result example | for result examples click on links above. |
Description | Posts from yapper with all details |
Method | GET |
authentication | Yes |
authentication error message | {"message":"not authenticated"} |
Order | Post.id desc |
Example XML | https://www.yapress.com/posts/yapper_posts.xml?email=test.yaper@yapress.com&password=MTIzNDU2 |
Example JSON | https://www.yapress.com/posts/yapper_posts.json?email=test.yaper@yapress.com&password=MTIzNDU2 |
Results |
Post, Range = f.e. regional, PostState = f.e. "en venta - todavía no vendido", Cobertura = f.e. Foto Reportaje, Subasta, Record => contains filename, Sale, Tag, Channel. Example for Record.filename: dca07591c8ebd69e2c434fb97dacd217.jpg So you will find:
|
Result example | for result examples click on links above. |
Description | list of preferred channels from the yapper which authenticates |
Method | GET |
authentication | Yes |
authentication error message | {"message":"not authenticated"} |
Example XML | https://www.yapress.com/yappers/preferred_channels_list.xml?email=test.yaper@yapress.com&password=MTIzNDU2 |
Example JSON | https://www.yapress.com/yappers/preferred_channels_list.json?email=test.yaper@yapress.com&password=MTIzNDU2 |
Results | per channel: id (channel id, int), name, urlname (example: www.yapress.com/canal/[urlname]), order (used for priorities in channel list), logo (image name -> https://www.yapress.com/img/channels/[logo] ), description (short text description) |
Result example json | {"prefferedChannels":[{"id":"17","name":"Ocio y Turismo","urlname":"turismo","order":"15","logo":"","description":""},{"id":"3","name":"Deportes","urlname":"deportes","order":"4","logo":"","description":""}]} |
Description | List of all channels - with the option to sort results. |
Method | GET |
authentication | No |
authentication error message | No |
URL XML | https://www.yapress.com/channels/all_channels.xml?order=name&direc=asc |
URL JSON | https://www.yapress.com/channels/all_channels.json?order=id&direc=desc |
you can sort by | all fields -> id, name, urlname, order, logo, description |
sort directions | direc [asc, desc] |
sort is optional | if you don't send name & direc params, the standard sort will be: name asc |
Results | per channel: id (channel id, int), name, urlname (example: www.yapress.com/canal/[urlname]), order (used for priorities in channel list), logo (image name -> https://www.yapress.com/img/channels/[logo] ), description (short text description) |
Result example | for result examples click on links above. |
Description | There are up to now only 3 ranges. But for future compatibility, they are included in the API |
Method | GET |
authentication | No |
authentication error message | No |
URL XML | https://www.yapress.com/ranges/all_ranges.xml |
URL JSON | https://www.yapress.com/ranges/all_ranges.json |
sortable | no |
sort directions | no |
standard sort order | id asc |
Results | id and name |
Result example | for result examples click on links above. |
Description | List of countries |
Method | GET |
authentication | No |
authentication error message | No |
Example XML | https://www.yapress.com/countries/countries_list.xml |
Example JSON | https://www.yapress.com/countries/countries_list.json |
Results | id, name per language |
Result example | for result examples click on links above. |
Description | List of regions with latlng field. Region can be city or province or whatever. |
Method | GET |
authentication | No |
authentication error message | No |
Example XML | https://www.yapress.com/regions/regions_list.xml |
Example JSON | https://www.yapress.com/regions/regions_list.json |
Results | id, name per language, latlng |
Result example | for result examples click on links above. |
Description | List of coberturas. |
Method | GET |
authentication | No |
authentication error message | No |
Example XML | https://www.yapress.com/coberturas/coberturas_list.xml |
Example JSON | https://www.yapress.com/coberturas/coberturas_list.json |
Results | id, name, price |
Result example | for result examples click on links above. |
Description | List of tags. |
Method | GET |
authentication | No |
authentication error message | No |
Example XML | https://www.yapress.com/tags/tags_list.xml |
Example JSON | https://www.yapress.com/tags/tags_list.json |
Results | id, name |
Result example | for result examples click on links above. |
Description | List of Post states |
Method | GET |
authentication | No |
authentication error message | No |
Example XML | https://www.yapress.com/post_states/post_states_list.xml |
Example JSON | https://www.yapress.com/post_states/post_states_list.json |
Results | id, name, comment |
Result example | for result examples click on links above. |
2013/2014 Martin Schenk para Yapress S.L.