• 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

Custom Short URL - need help

fix4me

Chevereto Member
Hi there,

I want to use custom url service - eyk.me, here is their API: http://eyk.me/api.html

Can you please help me to set it up in chevereto config.php? What do I need to put in
$config['custom_short_url_api'] = '';

How the string should look like according to Eyk.me API?


Many thanks in advance!!
 
Hi! Many thanks for your fast response! Really appreciated!

Unfortunately, followed your instruction with no results - after uploading a picture the tiny url field is empty.

That's how my bridge file is looks like:

Code:
<?php
/* Eyk.me bridge for Chevereto */
/* By Rodolfo Berrios */
 
define('access', 'BRIDGE');
require_once('includes/chevereto.php');
 
$config['tinyim_api_key'] = '928fe15924ffefb8e7f2d05c79714a4a'; // Ypur tini.im API key
$tinyim = json_decode(fetch_url('http://eyk.me/api/v1/'.$config['tinyim_api_key'].'/shorturl/create/url/'.base64_encode($_GET['url']).'.json'));
 
die($tinyim->data->short_url);
 
?>

And that's how the string in config file looks like:

Code:
/**
* custom_short_url_api
* If you set short_url_service to custom you need to specify the API url for your custom service
* including user login, output format (raw text) and at the end the empty url param (see the example)
* Note: Your service must have raw text output via GET.
*/
$config['custom_short_url_api'] = 'http://picoolio.net/eyk.me_bridge.php?url='; // Example: http://yoursite.com/yourls-api.php?format=simple&action=shorturl&username=<USERNAME>&password=<PASSWORD>&url=
 
 
/**
* custom_short_url_service
* The name of your custom short url service
*/
$config['custom_short_url_service'] = 'Eyk.me';
 
 
/**
* short_url_user & short_url_keypass
* In case that the cut URL service API needs user:pass or id:key
* Note: This is not valid for custom short_url_service
*/
$config['short_url_user'] = ''; // user/id  example: $config['short_url_user'] = 'bitlyuser'
$config['short_url_keypass'] = ''; // pass/key example: $config['short_url_keypass'] = '123456789'


Is anything I have missed?
 
Enable error reporting to see the error in the bridge.
 
Edit the config file, includes/config.php search for "error"
 
Back
Top