Utilizamos cookies propias y de terceros para realizar análisis de uso y medición de nuestra web para mejorar nuestros servicios.
Si continúas navegando, consideramos que aceptas el uso de cookies. Ver nuestra politica de cookies.
last modified: 2014-05-30
  1. basic test

    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
  2. basic post upload test without authentication

    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
  3. complete post upload with authentication

    Description post upload with one file and authentication
    Method POST
    authentication Yes
    authentication error message {"message":"not authenticated"}
    Expected fields
    • data[Post][yapper_id] -> yapper id [int]
    • data[Post][subject] -> Título [varchar]
    • data[Post][body] -> Descripción [varchar]
    • data[Post][range_id] -> Range (regional, nacional...) [int]
    • data[Post][cobertura_id] -> foto, video, .. [int]
    • data[Post][alarma] -> 1 yes, 0 no -> if true -> channel 5 = sucesos type:[int]
    • data[Post][latlng] ->latitud y longitud. Format example: 40.440676,-3.699875 type:[varchar]. Can be empty.

      If latlng is submitted, the post will be shown on map "yapress en el mundo" on latlng postition. If latlng is not submitted, the post will be shown on map "yapress en el mundo" in country and city/region of the yapper.

    • not compulsory: Channel y Tags. You can add 0 to n.
    • data[Channel][Channel][0] -> contains first channel_id [int]
    • data[Channel][Channel][1] -> contains second channel_id [int]
    • data[Channel][Channel][n] -> contains n'th channel_id [int]
    • data[Tag][Tag][0] -> contains first tag_id [int]
    • data[Tag][Tag][1] -> contains second tag_id [int]
    • data[Tag][Tag][n] -> contains n'th tag_id [int]
    • data[Post][fileName] - the file - ONE file ist expected.
    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
  4. yapper data

    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.
  5. yapper posts

    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:

    • fotos: the original size watermarked:
    • http://www.yapress.com/files/images1/dca07591c8ebd69e2c434fb97dacd217.jpg
    • fotos: the thumbs
    • http://www.yapress.com/files/thumbs1/dca07591c8ebd69e2c434fb97dacd217-90x90.jpg
    • http://www.yapress.com/files/thumbs1/dca07591c8ebd69e2c434fb97dacd217-268x201.jpg
    • http://www.yapress.com/files/thumbs1/dca07591c8ebd69e2c434fb97dacd217-462x346.jpg
    • videos: example filename 4690ceae27c2332735fa45b418f8024a.mp4
    • videos thumb image: 4690ceae27c2332735fa45b418f8024a.jpeg
    • http://www.yapress.com/files/images1/4690ceae27c2332735fa45b418f8024a.mp4
    • http://www.yapress.com/files/images1/4690ceae27c2332735fa45b418f8024a.webm
    • http://www.yapress.com/files/images1/4690ceae27c2332735fa45b418f8024a.ogv
    • thumb from video: http://www.yapress.com/files/images1/4690ceae27c2332735fa45b418f8024a.jpeg
    Result example for result examples click on links above.
  6. yappers preferred channels list

    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":""}]}
  7. channels

    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.
  8. ranges = Ambitos (regional, ...)

    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.
  9. countries

    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.
  10. regions

    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.
  11. coberturas

    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.
  12. tags

    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.
  13. post states

    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.