diff --git a/composer.json b/composer.json index 5d6f04c..373a2f8 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ }, "autoload": { "psr-4": { - "Instagram\\": "src/Instagram/" + "Jstolpe\\InstagramGraphApiPhpSdk\\": "src/Instagram/" } } } diff --git a/src/Instagram/AccessToken/AccessToken.php b/src/Instagram/AccessToken/AccessToken.php index aeae810..9dd5a34 100644 --- a/src/Instagram/AccessToken/AccessToken.php +++ b/src/Instagram/AccessToken/AccessToken.php @@ -21,12 +21,12 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\AccessToken; +namespace Jstolpe\InstagramGraphApiPhpSdk\AccessToken; // other classes we need to use -use Instagram\Instagram; -use Instagram\Request\Params; -use Instagram\Request\GrantTypes; +use Jstolpe\InstagramGraphApiPhpSdk\Instagram; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Params; +use Jstolpe\InstagramGraphApiPhpSdk\Request\GrantTypes; /** * AccessToken @@ -247,6 +247,4 @@ public function setDataFromResponse( $response ) { $this->expiresAt = isset( $response['expires_in'] ) ? time() + $response['expires_in'] : 0; } } -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/src/Instagram/Comment/Comment.php b/src/Instagram/Comment/Comment.php index 205b7c7..c7bef5c 100644 --- a/src/Instagram/Comment/Comment.php +++ b/src/Instagram/Comment/Comment.php @@ -21,12 +21,12 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\Comment; +namespace Jstolpe\InstagramGraphApiPhpSdk\Comment; // other classes we need to use -use Instagram\Instagram; -use Instagram\Request\Params; -use Instagram\Request\Fields; +use Jstolpe\InstagramGraphApiPhpSdk\Instagram; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Params; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Fields; /** * Comment @@ -142,5 +142,3 @@ public function remove() { return $response; } } - -?> \ No newline at end of file diff --git a/src/Instagram/Comment/Replies.php b/src/Instagram/Comment/Replies.php index cf210ef..b81a268 100644 --- a/src/Instagram/Comment/Replies.php +++ b/src/Instagram/Comment/Replies.php @@ -21,12 +21,12 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\Comment; +namespace Jstolpe\InstagramGraphApiPhpSdk\Comment; // other classes we need to use -use Instagram\Instagram; -use Instagram\Request\Params; -use Instagram\Request\Fields; +use Jstolpe\InstagramGraphApiPhpSdk\Instagram; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Params; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Fields; /** * Replies @@ -99,5 +99,3 @@ public function getSelf( $params = array() ) { return $response; } } - -?> \ No newline at end of file diff --git a/src/Instagram/Container/Container.php b/src/Instagram/Container/Container.php index 00aa607..776d0d0 100644 --- a/src/Instagram/Container/Container.php +++ b/src/Instagram/Container/Container.php @@ -21,12 +21,12 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\Container; +namespace Jstolpe\InstagramGraphApiPhpSdk\Container; // other classes we need to use -use Instagram\Instagram; -use Instagram\Request\Params; -use Instagram\Request\Fields; +use Jstolpe\InstagramGraphApiPhpSdk\Instagram; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Params; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Fields; /** * Container @@ -89,5 +89,3 @@ public function getSelf( $params = array() ) { return $response; } } - -?> \ No newline at end of file diff --git a/src/Instagram/FacebookLogin/FacebookLogin.php b/src/Instagram/FacebookLogin/FacebookLogin.php index 9dcf4a2..d348b08 100644 --- a/src/Instagram/FacebookLogin/FacebookLogin.php +++ b/src/Instagram/FacebookLogin/FacebookLogin.php @@ -21,13 +21,13 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\FacebookLogin; +namespace Jstolpe\InstagramGraphApiPhpSdk\FacebookLogin; // other classes we need to use -use Instagram\Instagram; -use Instagram\Request\Request; -use Instagram\Request\Params; -use Instagram\Request\ResponseTypes; +use Jstolpe\InstagramGraphApiPhpSdk\Instagram; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Request; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Params; +use Jstolpe\InstagramGraphApiPhpSdk\Request\ResponseTypes; /** * FacebookLogin @@ -80,7 +80,7 @@ public function __construct( $config = array() ) { * @param string $redirectUri uri the user gets sent to after logging in with facebook. * @param array $permissions array of the permissions you want to request from the user. * @param string $state this gets passed back from facebook in the redirect uri. - * @return Instagram response. + * @return string Instagram response. */ public function getLoginDialogUrl( $redirectUri, $permissions, $state = '' ) { $params = array( // params required to generate the login url @@ -92,8 +92,6 @@ public function getLoginDialogUrl( $redirectUri, $permissions, $state = '' ) { ); // return the login dialog url - return Request::BASE_AUTHORIZATION_URL . '/' . $this->graphVersion . '/' . self::ENDPOINT . '?' . http_build_query( $params );; + return Request::BASE_AUTHORIZATION_URL . '/' . $this->graphVersion . '/' . self::ENDPOINT . '?' . http_build_query( $params ); } -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/src/Instagram/Hashtag/Hashtag.php b/src/Instagram/Hashtag/Hashtag.php index 3b1f7af..883f95d 100644 --- a/src/Instagram/Hashtag/Hashtag.php +++ b/src/Instagram/Hashtag/Hashtag.php @@ -21,12 +21,12 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\Hashtag; +namespace Jstolpe\InstagramGraphApiPhpSdk\Hashtag; // other classes we need to use -use Instagram\Instagram; -use Instagram\Request\Params; -use Instagram\Request\Fields; +use Jstolpe\InstagramGraphApiPhpSdk\Instagram; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Params; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Fields; /** * Hashtag. @@ -88,5 +88,3 @@ public function getSelf( $params = array() ) { return $response; } } - -?> \ No newline at end of file diff --git a/src/Instagram/Hashtag/RecentMedia.php b/src/Instagram/Hashtag/RecentMedia.php index 462a302..8948f87 100644 --- a/src/Instagram/Hashtag/RecentMedia.php +++ b/src/Instagram/Hashtag/RecentMedia.php @@ -21,12 +21,12 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\Hashtag; +namespace Jstolpe\InstagramGraphApiPhpSdk\Hashtag; // other classes we need to use -use Instagram\Instagram; -use Instagram\Request\Params; -use Instagram\Request\Fields; +use Jstolpe\InstagramGraphApiPhpSdk\Instagram; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Params; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Fields; /** * Recent Media @@ -109,6 +109,4 @@ public function getParams( $params = array() ) { return $params; } } -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/src/Instagram/Hashtag/TopMedia.php b/src/Instagram/Hashtag/TopMedia.php index 106d4f7..2ac2e56 100644 --- a/src/Instagram/Hashtag/TopMedia.php +++ b/src/Instagram/Hashtag/TopMedia.php @@ -21,12 +21,12 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\Hashtag; +namespace Jstolpe\InstagramGraphApiPhpSdk\Hashtag; // other classes we need to use -use Instagram\Instagram; -use Instagram\Request\Params; -use Instagram\Request\Fields; +use Jstolpe\InstagramGraphApiPhpSdk\Instagram; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Params; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Fields; /** * Top Media @@ -109,6 +109,4 @@ public function getParams( $params = array() ) { return $params; } } -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/src/Instagram/HashtagSearch/HashtagSearch.php b/src/Instagram/HashtagSearch/HashtagSearch.php index 9fccd12..4f4a993 100644 --- a/src/Instagram/HashtagSearch/HashtagSearch.php +++ b/src/Instagram/HashtagSearch/HashtagSearch.php @@ -21,11 +21,11 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\HashtagSearch; +namespace Jstolpe\InstagramGraphApiPhpSdk\HashtagSearch; // other classes we need to use -use Instagram\Instagram; -use Instagram\Request\Params; +use Jstolpe\InstagramGraphApiPhpSdk\Instagram; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Params; /** * Hashtag Search. @@ -86,6 +86,4 @@ public function getSelf( $hashtagName ) { // return response return $response; } -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/src/Instagram/Instagram.php b/src/Instagram/Instagram.php index af3fb07..90a80f4 100644 --- a/src/Instagram/Instagram.php +++ b/src/Instagram/Instagram.php @@ -21,13 +21,13 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram; +namespace Jstolpe\InstagramGraphApiPhpSdk; // other classes to use -use Instagram\Request\Request; -use Instagram\Request\Curl; -use Instagram\Request\Params; -use Instagram\Request\Fields; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Request; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Curl; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Params; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Fields; /** * Instagram @@ -246,6 +246,4 @@ public function calcLinkFromCursor( $type, &$response, $endpoint, $params ) { $response[Fields::PAGING][$pagingOrder] = $request->getUrl(); } } -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/src/Instagram/Media/Children.php b/src/Instagram/Media/Children.php index 808434b..4ba7d0e 100644 --- a/src/Instagram/Media/Children.php +++ b/src/Instagram/Media/Children.php @@ -21,12 +21,12 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\Media; +namespace Jstolpe\InstagramGraphApiPhpSdk\Media; // other classes we need to use -use Instagram\Instagram; -use Instagram\Request\Params; -use Instagram\Request\Fields; +use Jstolpe\InstagramGraphApiPhpSdk\Instagram; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Params; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Fields; /** * Children @@ -76,6 +76,4 @@ public function getSelf( $params = array() ) { // return response return $response; } -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/src/Instagram/Media/Comments.php b/src/Instagram/Media/Comments.php index 4fb4577..ede261f 100644 --- a/src/Instagram/Media/Comments.php +++ b/src/Instagram/Media/Comments.php @@ -21,12 +21,12 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\Media; +namespace Jstolpe\InstagramGraphApiPhpSdk\Media; // other classes we need to use -use Instagram\Instagram; -use Instagram\Request\Params; -use Instagram\Request\Fields; +use Jstolpe\InstagramGraphApiPhpSdk\Instagram; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Params; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Fields; /** * Comments @@ -120,6 +120,4 @@ public function getParams( $params = array() ) { return $params; } } -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/src/Instagram/Media/Insights.php b/src/Instagram/Media/Insights.php index c4a438d..acf5a75 100644 --- a/src/Instagram/Media/Insights.php +++ b/src/Instagram/Media/Insights.php @@ -21,13 +21,12 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\Media; +namespace Jstolpe\InstagramGraphApiPhpSdk\Media; // other classes we need to use -use Instagram\Instagram; -use Instagram\Request\Params; -use Instagram\Request\Fields; -use Instagram\Request\Metric; +use Jstolpe\InstagramGraphApiPhpSdk\Instagram; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Params; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Metric; /** * Insights @@ -137,5 +136,3 @@ public function getParams( $params = array() ) { } } } - -?> \ No newline at end of file diff --git a/src/Instagram/Media/Media.php b/src/Instagram/Media/Media.php index fce55a4..d8c9a7b 100644 --- a/src/Instagram/Media/Media.php +++ b/src/Instagram/Media/Media.php @@ -21,12 +21,12 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\Media; +namespace Jstolpe\InstagramGraphApiPhpSdk\Media; // other classes we need to use -use Instagram\Instagram; -use Instagram\Request\Params; -use Instagram\Request\Fields; +use Jstolpe\InstagramGraphApiPhpSdk\Instagram; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Params; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Fields; /** * Media @@ -118,6 +118,4 @@ public function getParams( $params = array() ) { return $params; } } -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/src/Instagram/Page/Page.php b/src/Instagram/Page/Page.php index 3e71f48..17e857d 100644 --- a/src/Instagram/Page/Page.php +++ b/src/Instagram/Page/Page.php @@ -21,12 +21,12 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\Page; +namespace Jstolpe\InstagramGraphApiPhpSdk\Page; // other classes we need to use -use Instagram\Instagram; -use Instagram\Request\Params; -use Instagram\Request\Fields; +use Jstolpe\InstagramGraphApiPhpSdk\Instagram; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Params; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Fields; /** * Page @@ -86,6 +86,4 @@ public function getSelf( $params = array() ) { // return response return $response; } -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/src/Instagram/Request/Curl.php b/src/Instagram/Request/Curl.php index ff42c57..e97df10 100644 --- a/src/Instagram/Request/Curl.php +++ b/src/Instagram/Request/Curl.php @@ -21,10 +21,8 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\Request; +namespace Jstolpe\InstagramGraphApiPhpSdk\Request; -// other classes we need to use -use Instagram\Request\Request; /** * Curl @@ -89,5 +87,3 @@ public function send( $request ) { return json_decode( $this->rawResponse, true ); } } - -?> \ No newline at end of file diff --git a/src/Instagram/Request/Fields.php b/src/Instagram/Request/Fields.php index 8277138..f9d3d3f 100644 --- a/src/Instagram/Request/Fields.php +++ b/src/Instagram/Request/Fields.php @@ -21,10 +21,9 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\Request; +namespace Jstolpe\InstagramGraphApiPhpSdk\Request; + -// other classes we need to use -use Instagram\Request\Params; /** * Fields @@ -189,6 +188,4 @@ public static function getDefaultMediaFieldsString() { '}' ; } -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/src/Instagram/Request/GrantTypes.php b/src/Instagram/Request/GrantTypes.php index 4fcc01f..7686577 100644 --- a/src/Instagram/Request/GrantTypes.php +++ b/src/Instagram/Request/GrantTypes.php @@ -21,7 +21,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\Request; +namespace Jstolpe\InstagramGraphApiPhpSdk\Request; /** * GrantTypes @@ -37,5 +37,3 @@ class GrantTypes { const FB_EXCHANGE_TOKEN = 'fb_exchange_token'; } - -?> \ No newline at end of file diff --git a/src/Instagram/Request/MediaTypes.php b/src/Instagram/Request/MediaTypes.php index 374962c..c921d31 100644 --- a/src/Instagram/Request/MediaTypes.php +++ b/src/Instagram/Request/MediaTypes.php @@ -21,7 +21,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\Request; +namespace Jstolpe\InstagramGraphApiPhpSdk\Request; /** * MediaTypes @@ -40,5 +40,3 @@ class MediaTypes { const REELS = 'REELS'; const STORIES = 'STORIES'; } - -?> \ No newline at end of file diff --git a/src/Instagram/Request/Metric.php b/src/Instagram/Request/Metric.php index c128a5f..ccd154e 100644 --- a/src/Instagram/Request/Metric.php +++ b/src/Instagram/Request/Metric.php @@ -21,7 +21,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\Request; +namespace Jstolpe\InstagramGraphApiPhpSdk\Request; /** * Metric @@ -66,5 +66,3 @@ class Metric { const VIDEO_VIEWS = 'video_views'; const WEBSITE_CLICKS = 'website_clicks'; } - -?> \ No newline at end of file diff --git a/src/Instagram/Request/Params.php b/src/Instagram/Request/Params.php index adadde6..c007a51 100644 --- a/src/Instagram/Request/Params.php +++ b/src/Instagram/Request/Params.php @@ -21,7 +21,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\Request; +namespace Jstolpe\InstagramGraphApiPhpSdk\Request; /** * Params @@ -99,5 +99,3 @@ public static function commaImplodeArray( $array = array() ) { return implode( ',', $array ); } } - -?> \ No newline at end of file diff --git a/src/Instagram/Request/Period.php b/src/Instagram/Request/Period.php index 5df2322..e05f2fd 100644 --- a/src/Instagram/Request/Period.php +++ b/src/Instagram/Request/Period.php @@ -21,7 +21,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\Request; +namespace Jstolpe\InstagramGraphApiPhpSdk\Request; /** * Period @@ -39,6 +39,4 @@ class Period { const DAY = 'day'; const WEEK = 'week'; const DAYS_28 = 'days_28'; -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/src/Instagram/Request/Request.php b/src/Instagram/Request/Request.php index a4eb5b1..681666c 100644 --- a/src/Instagram/Request/Request.php +++ b/src/Instagram/Request/Request.php @@ -21,7 +21,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\Request; +namespace Jstolpe\InstagramGraphApiPhpSdk\Request; /** * Request @@ -190,6 +190,4 @@ public function getPostParams() { public function getUrl() { return $this->url; } -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/src/Instagram/Request/ResponseTypes.php b/src/Instagram/Request/ResponseTypes.php index ab8b1a5..08d1f4a 100644 --- a/src/Instagram/Request/ResponseTypes.php +++ b/src/Instagram/Request/ResponseTypes.php @@ -21,7 +21,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\Request; +namespace Jstolpe\InstagramGraphApiPhpSdk\Request; /** * ResponseTypes @@ -36,6 +36,4 @@ */ class ResponseTypes { const CODE = 'code'; -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/src/Instagram/Request/Scope.php b/src/Instagram/Request/Scope.php index c8fa1ba..2d745b1 100644 --- a/src/Instagram/Request/Scope.php +++ b/src/Instagram/Request/Scope.php @@ -21,7 +21,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\Request; +namespace Jstolpe\InstagramGraphApiPhpSdk\Request; /** * Scope @@ -43,5 +43,4 @@ class Scope { const INSTAGRAM_MANAGE_INSIGHTS = 'instagram_manage_insights'; const PAGES_SHOW_LIST = 'pages_show_list'; const PAGES_READ_ENGAGEMENT = 'pages_read_engagement'; -} -?> \ No newline at end of file +} \ No newline at end of file diff --git a/src/Instagram/User/BusinessDiscovery.php b/src/Instagram/User/BusinessDiscovery.php index a9e9721..d45f753 100644 --- a/src/Instagram/User/BusinessDiscovery.php +++ b/src/Instagram/User/BusinessDiscovery.php @@ -21,14 +21,13 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\User; +namespace Jstolpe\InstagramGraphApiPhpSdk\User; // other classes we need to use -use Instagram\Instagram; -use Instagram\Request\Params; -use Instagram\Request\Fields; -use Instagram\Request\Request; -use Instagram\User\Media; +use Jstolpe\InstagramGraphApiPhpSdk\Instagram; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Params; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Fields; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Request; /** * Business Discovery @@ -218,5 +217,3 @@ public function getParams( $params = array() ) { } } } - -?> \ No newline at end of file diff --git a/src/Instagram/User/ContentPublishingLimit.php b/src/Instagram/User/ContentPublishingLimit.php index f014575..8dd6d05 100644 --- a/src/Instagram/User/ContentPublishingLimit.php +++ b/src/Instagram/User/ContentPublishingLimit.php @@ -21,12 +21,12 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\User; +namespace Jstolpe\InstagramGraphApiPhpSdk\User; // other classes we need to use -use Instagram\Instagram; -use Instagram\Request\Params; -use Instagram\Request\Fields; +use Jstolpe\InstagramGraphApiPhpSdk\Instagram; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Params; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Fields; /** * Content Publishing Limit @@ -106,5 +106,3 @@ public function getParams( $params = array() ) { } } } - -?> \ No newline at end of file diff --git a/src/Instagram/User/Insights.php b/src/Instagram/User/Insights.php index 559253c..0baabdd 100644 --- a/src/Instagram/User/Insights.php +++ b/src/Instagram/User/Insights.php @@ -21,13 +21,13 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\User; +namespace Jstolpe\InstagramGraphApiPhpSdk\User; // other classes we need to use -use Instagram\Instagram; -use Instagram\Request\Params; -use Instagram\Request\Metric; -use Instagram\Request\Period; +use Jstolpe\InstagramGraphApiPhpSdk\Instagram; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Params; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Metric; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Period; /** * Insights @@ -112,5 +112,3 @@ public function getParams( $params = array() ) { } } } - -?> \ No newline at end of file diff --git a/src/Instagram/User/LiveMedia.php b/src/Instagram/User/LiveMedia.php index c74c6f3..1294d89 100644 --- a/src/Instagram/User/LiveMedia.php +++ b/src/Instagram/User/LiveMedia.php @@ -21,12 +21,12 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\User; +namespace Jstolpe\InstagramGraphApiPhpSdk\User; // other classes we need to use -use Instagram\Instagram; -use Instagram\Request\Params; -use Instagram\Request\Fields; +use Jstolpe\InstagramGraphApiPhpSdk\Instagram; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Params; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Fields; /** * Live Media @@ -77,5 +77,3 @@ public function getSelf( $params = array() ) { return $response; } } - -?> \ No newline at end of file diff --git a/src/Instagram/User/Media.php b/src/Instagram/User/Media.php index e81a4fa..1b9e707 100644 --- a/src/Instagram/User/Media.php +++ b/src/Instagram/User/Media.php @@ -21,13 +21,13 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\User; +namespace Jstolpe\InstagramGraphApiPhpSdk\User; // other classes we need to use -use Instagram\Instagram; -use Instagram\Request\Params; -use Instagram\Request\Fields; -use Instagram\Request\MediaTypes; +use Jstolpe\InstagramGraphApiPhpSdk\Instagram; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Params; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Fields; +use Jstolpe\InstagramGraphApiPhpSdk\Request\MediaTypes; /** * Media @@ -133,4 +133,3 @@ public function getParams( $params = array() ) { } } -?> diff --git a/src/Instagram/User/MediaPublish.php b/src/Instagram/User/MediaPublish.php index 2f6794a..915718f 100644 --- a/src/Instagram/User/MediaPublish.php +++ b/src/Instagram/User/MediaPublish.php @@ -21,11 +21,11 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\User; +namespace Jstolpe\InstagramGraphApiPhpSdk\User; // other classes we need to use -use Instagram\Instagram; -use Instagram\Request\Params; +use Jstolpe\InstagramGraphApiPhpSdk\Instagram; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Params; /** * Media Publish @@ -78,5 +78,3 @@ public function create( $containerId ) { return $response; } } - -?> \ No newline at end of file diff --git a/src/Instagram/User/MentionedComment.php b/src/Instagram/User/MentionedComment.php index 7930b1b..b50ad3a 100644 --- a/src/Instagram/User/MentionedComment.php +++ b/src/Instagram/User/MentionedComment.php @@ -21,12 +21,12 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\User; +namespace Jstolpe\InstagramGraphApiPhpSdk\User; // other classes we need to use -use Instagram\Instagram; -use Instagram\Request\Params; -use Instagram\Request\Fields; +use Jstolpe\InstagramGraphApiPhpSdk\Instagram; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Params; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Fields; /** * Mentioned Comment @@ -102,6 +102,4 @@ public function getParams( $params = array() ) { return $params; } } -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/src/Instagram/User/MentionedMedia.php b/src/Instagram/User/MentionedMedia.php index fa56d8e..1a9d466 100644 --- a/src/Instagram/User/MentionedMedia.php +++ b/src/Instagram/User/MentionedMedia.php @@ -21,12 +21,12 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\User; +namespace Jstolpe\InstagramGraphApiPhpSdk\User; // other classes we need to use -use Instagram\Instagram; -use Instagram\Request\Params; -use Instagram\Request\Fields; +use Jstolpe\InstagramGraphApiPhpSdk\Instagram; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Params; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Fields; /** * Mentioned Media @@ -99,6 +99,4 @@ public function getParams( $params = array() ) { return $params; } } -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/src/Instagram/User/Mentions.php b/src/Instagram/User/Mentions.php index f83b776..c74ffd3 100644 --- a/src/Instagram/User/Mentions.php +++ b/src/Instagram/User/Mentions.php @@ -21,10 +21,10 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\User; +namespace Jstolpe\InstagramGraphApiPhpSdk\User; // other classes we need to use -use Instagram\Instagram; +use Jstolpe\InstagramGraphApiPhpSdk\Instagram; /** * Mentions @@ -94,6 +94,4 @@ public function replyToComment( $params ) { // return response return $response; } -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/src/Instagram/User/RecentlySearchedHashtags.php b/src/Instagram/User/RecentlySearchedHashtags.php index 1624922..7592a05 100644 --- a/src/Instagram/User/RecentlySearchedHashtags.php +++ b/src/Instagram/User/RecentlySearchedHashtags.php @@ -21,11 +21,11 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\User; +namespace Jstolpe\InstagramGraphApiPhpSdk\User; // other classes we need to use -use Instagram\Instagram; -use Instagram\Request\Params; +use Jstolpe\InstagramGraphApiPhpSdk\Instagram; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Params; /** * Recently Searched Hashtags @@ -98,6 +98,4 @@ public function getParams( $params = array() ) { return $params; } } -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/src/Instagram/User/Stories.php b/src/Instagram/User/Stories.php index 4e383ad..665b90a 100644 --- a/src/Instagram/User/Stories.php +++ b/src/Instagram/User/Stories.php @@ -21,10 +21,10 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\User; +namespace Jstolpe\InstagramGraphApiPhpSdk\User; // other classes we need to use -use Instagram\Instagram; +use Jstolpe\InstagramGraphApiPhpSdk\Instagram; /** * Stories @@ -73,6 +73,4 @@ public function getSelf( $params = array() ) { // return response return $response; } -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/src/Instagram/User/Tags.php b/src/Instagram/User/Tags.php index ea0fdb5..4fb2391 100644 --- a/src/Instagram/User/Tags.php +++ b/src/Instagram/User/Tags.php @@ -21,12 +21,12 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\User; +namespace Jstolpe\InstagramGraphApiPhpSdk\User; // other classes we need to use -use Instagram\Instagram; -use Instagram\Request\Params; -use Instagram\Request\Fields; +use Jstolpe\InstagramGraphApiPhpSdk\Instagram; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Params; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Fields; /** * Tags @@ -114,6 +114,4 @@ public function getParams( $params = array() ) { return $params; } } -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/src/Instagram/User/User.php b/src/Instagram/User/User.php index ddbe1ac..90fd6fa 100644 --- a/src/Instagram/User/User.php +++ b/src/Instagram/User/User.php @@ -21,12 +21,12 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -namespace Instagram\User; +namespace Jstolpe\InstagramGraphApiPhpSdk\User; // other classes we need to use -use Instagram\Instagram; -use Instagram\Request\Params; -use Instagram\Request\Fields; +use Jstolpe\InstagramGraphApiPhpSdk\Instagram; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Params; +use Jstolpe\InstagramGraphApiPhpSdk\Request\Fields; /** * User @@ -128,6 +128,4 @@ public function getUserPages( $params = array() ) { // return response return $response; } -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/src/Instagram/autoload.php b/src/Instagram/autoload.php index fb7460f..669126c 100644 --- a/src/Instagram/autoload.php +++ b/src/Instagram/autoload.php @@ -22,6 +22,8 @@ * THE SOFTWARE. */ +//Name space fixed you can delete this. + /** * Register the autoloader for the Instagram Graph API PHP SDK classes. *