Skip to content

Commit

Permalink
Merge pull request #69 from adrianengine/issue/getRecentTagged-retire…
Browse files Browse the repository at this point in the history
…ment

Issue/get recent tagged retirement
  • Loading branch information
adrianengine authored Feb 3, 2019
2 parents cfd69d7 + 1061460 commit 49bc8a8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 30 deletions.
31 changes: 5 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ jQuery.fn.spectragram.accessData = {
1. Call **spectagram** function on the container element and pass it your query:

``` javascript
$('ul').spectragram('getRecentTagged',{
query: 'converse'
$('ul').spectragram('getUserFeed', {
size: 'big'
});
```

Expand All @@ -68,7 +68,7 @@ $('ul').spectragram('getRecentTagged',{
``` javascript
.spectragram( Method, [Options] )

Method: getUserFeed or getRecentTagged functions
Method: getUserFeed function

Options: An array to configure the properties of spectragram
```
Expand All @@ -88,20 +88,6 @@ $('.container').spectragram('getUserFeed',{
});
```

**getRecentTagged**

Get a list of recently tagged media by the owner of the access_token.

``` javascript
$('ul').spectragram('getRecentTagged',{
complete : myCallbackFunc(),
max: 20,
query: "converse",
size: "medium",
wrapEachWith: "<li></li>"
});
```

### Options

**accessToken** (required)
Expand All @@ -110,12 +96,6 @@ $('ul').spectragram('getRecentTagged',{

This is your Instagram Application AccessToken. *Default: Null*

**query** (required for getRecentTagged)

*Type: String*

The string to search. *Default: 'coffee'*

**max**

*Type: Number*
Expand Down Expand Up @@ -147,10 +127,9 @@ jQuery.fn.spectragram.accessData = {
accessToken: 'your-instagram-access-token'
};

$('ul').spectragram('getRecentTagged',{
$('ul').spectragram('getUserFeed',{
complete : myCallbackFunc(),
max: 20,
query: "converse",
max: 4,
size: "medium",
wrapEachWith: "<li></li>"
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spectragram",
"version": "1.1.0",
"version": "1.1.1",
"description": "An easy jQuery plugin for Instagram API to fetch and display user, popular or tags photo feeds inside your web application or site.",
"main": "spectragram.js",
"files": [
Expand Down
4 changes: 2 additions & 2 deletions spectragram.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ if ( typeof Object.create !== "function" ) {
self.fetch( endpoint ).done( function ( results ) {
var status = self.options.query || 'User';

if ( results.data.length ) {
if ( results.data && results.data.length ) {
self.display( results );
} else {
$.error( "Spectragram.js - Error: " + status + " does not have photos." );
Expand All @@ -74,7 +74,7 @@ if ( typeof Object.create !== "function" ) {
// Tags
// Get a list of recently tagged media
getRecentTagged: function () {
this.getPhotos( this.endpoints.tagsMediaRecent );
$.error( "This endpoint has been retired" );
},

fetch: function ( getData ) {
Expand Down
2 changes: 1 addition & 1 deletion spectragram.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 49bc8a8

Please sign in to comment.