• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

Integrar acortador de link privado

Status
Not open for further replies.
No puedes integrar osd.li por que no proveen un response simple. Un response simple es aquel que entrega directamente la url acortada como txt. De momento las únicas API custom que maneja Chevereto son aquellas con esta respuesta. Se agregara más flexibilidad en este punto pero no por ahora.

Creo que lo mejor para ti es hacer una API puente. El concepto es que tienes en tu servidor un PHP escuchando request del tipo ?url=<LONG URL> y en este archivo tu te conectas con curl o file_get_contents a osd.li, evaluas la respuesta que te dan ellos y luego das de salida sólo la URL en txt. Luego en Chevereto tu tendrías que setear:
  1. $config['short_url_service'] = 'custom';
  2. $config['custom_short_url_api'] = 'http://misitio.com/osdli.php?url=';
Con eso podras formatear la salida a lo que Chevereto entiende.
 
Status
Not open for further replies.
Back
Top