Jump to content

instagram


benbyf
 Share

Recommended Posts

  • 2 months later...

I'm in the planning of building one, since I need it for a side project. I won't have time until end of June, but it's on the list.

got any tips? got to get mine off teh ground soon for a client by the end of may

Link to comment
Share on other sites

Mainly design, frontend, templating and js guy so building modules is both new and scary to me.I was merely wondering if there was a good place to start. For example, i was going to look at the twitter module as it will do a similar thing.

Link to comment
Share on other sites

hey - not to rain on anyone's module development parade, but i've been scoping instagram widgets on codecanyon, for an existing client/site who requested it, and i seem to have found at least a handful of decent ones.. @benbyf - are there any limitations that would prevent you from using something like that?

Link to comment
Share on other sites

Posting and getting may sound more difficult then Ryan has made it for us.

To give you a simple example that extends Jan Romero's post:

$http = new WireHttp;

$request = array(
  'public-key' => 'xyx1234_what-instagram-wants',
  'just-a-key' => 'Just some value you want to add to your get request',
  );

$data = $http->get('http://instagram.com/request/some/partt', $request);

// data should have data coming from instagram
var_dump($data);
  • Like 3
Link to comment
Share on other sites

Posting and getting may sound more difficult then Ryan has made it for us.

To give you a simple example that extends Jan Romero's post:

$http = new WireHttp;

$request = array(
  'public-key' => 'xyx1234_what-instagram-wants',
  'just-a-key' => 'Just some value you want to add to your get request',
  );

$data = $http->get('http://instagram.com/request/some/partt', $request);

// data should have data coming from instagram
var_dump($data);

awesome. is that simply in the templates? i guess i could experiment and then create a module once ive got the basics down and learn a bit more about it etc.

Link to comment
Share on other sites

literly no idea what im doing

$value = $input->get->access_token;

$http = new WireHttp;

$para = array(
	'count' => 1,
	'access_token' => $value,
	'min_id'=>'',
	'max_id'=>''
);

$url = 'https://api.instagram.com/v1/users/self/feed/';

$data = $http->get($url, $para);

// data should have data coming from instagram
var_dump($data);
Link to comment
Share on other sites

It's not complicated, but you have to grasp some basic level on how to interact with API's. Just follow a tutorial like this one. If you got it working, try the WireHttp class you are already trying since that will be a lot cleaner.

  • Like 1
Link to comment
Share on other sites

  • 5 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...