Skip to content

Commit

Permalink
Remove concat in consts to support older than 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
raiym committed Jun 6, 2016
1 parent 6f566c1 commit 47ce723
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/InstagramScraper/Endpoints.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,14 @@
class Endpoints
{
const BASE_URL = 'https://www.instagram.com';
const ACCOUNT_PAGE = self::BASE_URL . '/{username}';
const MEDIA_LINK = self::BASE_URL . '/p/{code}';

const ACCOUNT_MEDIAS = self::ACCOUNT_PAGE . '/media?max_id={max_id}';
const ACCOUNT_JSON_INFO = self::ACCOUNT_PAGE . '/?__a=1';
const MEDIA_JSON_INFO = self::MEDIA_LINK . '/?__a=1';
const MEDIA_JSON_BY_LOCATION_ID = self::BASE_URL . '/explore/locations/{facebookLocationId}/?__a=1';
const MEDIA_JSON_BY_TAG = self::BASE_URL . '/explore/tags/{tag}/?__a=1&max_id={max_id}';

const GENERAL_SEARCH = self::BASE_URL . '/web/search/topsearch/?query={query}';
const ACCOUNT_PAGE = 'https://www.instagram.com/{username}';
const MEDIA_LINK = 'https://www.instagram.com/p/{code}';
const ACCOUNT_MEDIAS = 'https://www.instagram.com/{username}/media?max_id={max_id}';
const ACCOUNT_JSON_INFO = 'https://www.instagram.com/{username}/?__a=1';
const MEDIA_JSON_INFO = 'https://www.instagram.com/p/{code}/?__a=1';
const MEDIA_JSON_BY_LOCATION_ID = 'https://www.instagram.com/explore/locations/{facebookLocationId}/?__a=1';
const MEDIA_JSON_BY_TAG = 'https://www.instagram.com/explore/tags/{tag}/?__a=1&max_id={max_id}';
const GENERAL_SEARCH = 'https://www.instagram.com/web/search/topsearch/?query={query}';

public static function getAccountPageLink($username)
{
Expand Down

0 comments on commit 47ce723

Please sign in to comment.