for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created for IG Monitoring.
* User: jakim <[email protected]>
* Date: 19.02.2018
*/
namespace jakim\ig;
class Url
{
public static $baseUrl = 'https://www.instagram.com';
public static function account($username)
return static::$baseUrl . str_replace('{username}', $username, '/{username}/');
}
public static function post($shortCode)
return static::$baseUrl . str_replace('{shortcode}', $shortCode, '/p/{shortcode}/');