Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"autoload": {
"psr-4": {
"Instagram\\": "src/Instagram/"
"Jstolpe\\InstagramGraphApiPhpSdk\\": "src/Instagram/"
}
}
}
12 changes: 5 additions & 7 deletions src/Instagram/AccessToken/AccessToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -247,6 +247,4 @@ public function setDataFromResponse( $response ) {
$this->expiresAt = isset( $response['expires_in'] ) ? time() + $response['expires_in'] : 0;
}
}
}

?>
}
10 changes: 4 additions & 6 deletions src/Instagram/Comment/Comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -142,5 +142,3 @@ public function remove() {
return $response;
}
}

?>
10 changes: 4 additions & 6 deletions src/Instagram/Comment/Replies.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -99,5 +99,3 @@ public function getSelf( $params = array() ) {
return $response;
}
}

?>
10 changes: 4 additions & 6 deletions src/Instagram/Container/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -89,5 +89,3 @@ public function getSelf( $params = array() ) {
return $response;
}
}

?>
18 changes: 8 additions & 10 deletions src/Instagram/FacebookLogin/FacebookLogin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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 );
}
}

?>
}
10 changes: 4 additions & 6 deletions src/Instagram/Hashtag/Hashtag.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -88,5 +88,3 @@ public function getSelf( $params = array() ) {
return $response;
}
}

?>
12 changes: 5 additions & 7 deletions src/Instagram/Hashtag/RecentMedia.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -109,6 +109,4 @@ public function getParams( $params = array() ) {
return $params;
}
}
}

?>
}
12 changes: 5 additions & 7 deletions src/Instagram/Hashtag/TopMedia.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -109,6 +109,4 @@ public function getParams( $params = array() ) {
return $params;
}
}
}

?>
}
10 changes: 4 additions & 6 deletions src/Instagram/HashtagSearch/HashtagSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -86,6 +86,4 @@ public function getSelf( $hashtagName ) {
// return response
return $response;
}
}

?>
}
14 changes: 6 additions & 8 deletions src/Instagram/Instagram.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -246,6 +246,4 @@ public function calcLinkFromCursor( $type, &$response, $endpoint, $params ) {
$response[Fields::PAGING][$pagingOrder] = $request->getUrl();
}
}
}

?>
}
12 changes: 5 additions & 7 deletions src/Instagram/Media/Children.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -76,6 +76,4 @@ public function getSelf( $params = array() ) {
// return response
return $response;
}
}

?>
}
12 changes: 5 additions & 7 deletions src/Instagram/Media/Comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -120,6 +120,4 @@ public function getParams( $params = array() ) {
return $params;
}
}
}

?>
}
11 changes: 4 additions & 7 deletions src/Instagram/Media/Insights.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -137,5 +136,3 @@ public function getParams( $params = array() ) {
}
}
}

?>
12 changes: 5 additions & 7 deletions src/Instagram/Media/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -118,6 +118,4 @@ public function getParams( $params = array() ) {
return $params;
}
}
}

?>
}
Loading