IsaacRankin\SocialFeed\Providers\SocialFeedProviderInstagram
Synopsis
class SocialFeedProviderInstagram
extends SocialFeedProvider
implements
SocialFeedProviderInterface
{
- // members
- private static array $db = ;
- private static string $table_name = 'SocialFeedProviderInstagram';
- private static string $singular_name = 'Instagram Provider';
- private static string $plural_name = 'Instagram Providers';
- private string $authBaseURL = 'https://api.instagram.com/oauth/authorize/';
- private string $type = 'instagram';
- // methods
- public void getCMSFields()
- public void getCMSValidator()
- private string getRedirectUri()
- public AccessToken fetchAccessToken()
- public string getType()
- public mixed getFeedUncached()
- public HTMLText getPostContent()
- public mixed getPostCreated()
- public mixed getPostUrl()
- public mixed getUserName()
- public mixed getImage()
- // Inherited methods from SocialFeedProvider
- public FieldList getCMSFields()
- public SS_List getFeed()
- public void getFeedUncached()
- public array getFeedCache()
- public int getFeedCacheExpiry()
- public void setFeedCache()
- public void clearFeedCache()
- protected Zend_Cache_Frontend_Output getCacheFactory()
Hierarchy
Extends
Implements
Tasks
Line | Task |
---|---|
72 | handle token expiry (as of 2016-08-03, Instagram access tokens don't expire.) |
73 | save returned user data? |
Members
private
- $authBaseURL
- $db
- $plural_name
- $singular_name
- $table_name
- $type
Methods
private
- getRedirectUri() — Construct redirect URI using current class name - used during OAuth flow.
public
- fetchAccessToken() — Fetch access token using code, used in the second step of OAuth flow.
- getCMSFields()
- getCMSValidator()
- getFeedUncached() — Fetch Instagram data for authorized user
- getImage() — Get the primary image for the post
- getPostContent()
- getPostCreated() — Get the creation time from a post
- getPostUrl() — Get the post URL from a post
- getType() — Return the type of provider
- getUserName() — Get the user who created the post
Inherited from IsaacRankin\SocialFeed\Providers\SocialFeedProvider
protected
public
- clearFeedCache() — Clear the cache that holds this providers feed.
- getCMSFields()
- getFeed() — Get feed from provider, will automatically cache the result.
- getFeedCache() — Get the providers feed from the cache. If there is no cache then return false.
- getFeedCacheExpiry() — Get the time() that the cache expires at.
- getFeedUncached() — Retrieve the providers feed without checking the cache first.
- setFeedCache() — Set the cache.