diff --git a/.swift-version b/.swift-version index 5186d07..bf77d54 100755 --- a/.swift-version +++ b/.swift-version @@ -1 +1 @@ -4.0 +4.2 diff --git a/.swiftlint.yml b/.swiftlint.yml index 421f6a5..6b84db7 100755 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -54,3 +54,4 @@ identifier_name: - x - y - id + - vc diff --git a/Cartfile.resolved b/Cartfile.resolved index 46e623c..adc5fd6 100755 --- a/Cartfile.resolved +++ b/Cartfile.resolved @@ -1,3 +1,3 @@ -github "Quick/Nimble" "v7.0.3" -github "Quick/Quick" "v1.2.0" +github "Quick/Nimble" "v7.3.1" +github "Quick/Quick" "v1.3.2" github "jspahrsummers/xcconfigs" "bb795558a76e5daf3688500055bbcfe243bffa8d" diff --git a/Carthage/Checkouts/Nimble b/Carthage/Checkouts/Nimble index 22800b0..cd6dfb8 160000 --- a/Carthage/Checkouts/Nimble +++ b/Carthage/Checkouts/Nimble @@ -1 +1 @@ -Subproject commit 22800b0954c89344bb8c87f8ab93378076716fb7 +Subproject commit cd6dfb86f496fcd96ce0bc6da962cd936bf41903 diff --git a/Carthage/Checkouts/Quick b/Carthage/Checkouts/Quick index 0ff81f2..5fbf138 160000 --- a/Carthage/Checkouts/Quick +++ b/Carthage/Checkouts/Quick @@ -1 +1 @@ -Subproject commit 0ff81f2c665b4381f526bd656f8708dd52a9ea2f +Subproject commit 5fbf13871d185526993130c3a1fad0b70bfe37ce diff --git a/Sources/Endpoints/Comments.swift b/Sources/Endpoints/Comments.swift index 4c5b5eb..b108eab 100755 --- a/Sources/Endpoints/Comments.swift +++ b/Sources/Endpoints/Comments.swift @@ -8,7 +8,7 @@ extension Instagram { - // MARK: - Comment Endpoints + // MARK: Comment Endpoints /// Get a list of recent comments on a media object. /// @@ -18,7 +18,7 @@ extension Instagram { /// /// - important: It requires *public_content* scope for media that does not belong to your own user. public func comments(fromMedia mediaId: String, success: SuccessHandler<[InstagramComment]>?, failure: FailureHandler?) { - request("/media/\(mediaId)/comments", success: { data in success?(data!) }, failure: failure) + request("/media/\(mediaId)/comments", success: success, failure: failure) } /// Create a comment on a media object. @@ -35,7 +35,7 @@ extension Instagram { /// - The comment cannot contain more than 1 URL. /// - The comment cannot consist of all capital letters. public func createComment(onMedia mediaId: String, text: String, success: SuccessHandler?, failure: FailureHandler?) { - request("/media/\(mediaId)/comments", method: .post, parameters: ["text": text], success: { data in success?(data!) }, failure: failure) + request("/media/\(mediaId)/comments", method: .post, parameters: ["text": text], success: success, failure: failure) } /// Remove a comment either on the authenticated user's media object or authored by the authenticated user. @@ -46,6 +46,6 @@ extension Instagram { /// /// - important: It requires *comments* scope. Also, *public_content* scope is required for media that does not belong to your own user. public func deleteComment(_ commentId: String, onMedia mediaId: String, success: EmptySuccessHandler?, failure: FailureHandler?) { - request("/media/\(mediaId)/comments/\(commentId)", method: .delete, success: { (_: InstagramEmptyResponse!) in success?() }, failure: failure) + request("/media/\(mediaId)/comments/\(commentId)", method: .delete, success: { (_: InstagramEmptyResponse) in success?() }, failure: failure) } } diff --git a/Sources/Endpoints/Likes.swift b/Sources/Endpoints/Likes.swift index 0c2008d..9c95c5a 100755 --- a/Sources/Endpoints/Likes.swift +++ b/Sources/Endpoints/Likes.swift @@ -8,7 +8,7 @@ extension Instagram { - // MARK: - Like Endpoints + // MARK: Like Endpoints /// Get a list of users who have liked this media. /// @@ -18,7 +18,7 @@ extension Instagram { /// /// - important: It requires *public_content* scope for media that does not belong to your own user. public func likes(inMedia mediaId: String, success: SuccessHandler<[InstagramUser]>?, failure: FailureHandler?) { - request("/media/\(mediaId)/likes", success: { data in success?(data!) }, failure: failure) + request("/media/\(mediaId)/likes", success: success, failure: failure) } /// Set a like on this media by the currently authenticated user. diff --git a/Sources/Endpoints/Locations.swift b/Sources/Endpoints/Locations.swift index fa29d86..e95aee8 100755 --- a/Sources/Endpoints/Locations.swift +++ b/Sources/Endpoints/Locations.swift @@ -10,7 +10,7 @@ import CoreLocation extension Instagram { - // MARK: - Location Endpoints + // MARK: Location Endpoints /// Get information about a location. /// @@ -20,7 +20,7 @@ extension Instagram { /// /// - important: It requires *public_content* scope. public func location(_ locationId: String, success: SuccessHandler>?, failure: FailureHandler?) { - request("/locations/\(locationId)", success: { data in success?(data!) }, failure: failure) + request("/locations/\(locationId)", success: success, failure: failure) } /// Get a list of recent media objects from a given location. @@ -37,13 +37,12 @@ extension Instagram { minId: String? = nil, success: SuccessHandler<[InstagramMedia]>?, failure: FailureHandler?) { - var parameters = Parameters() parameters["max_id"] ??= maxId parameters["min_id"] ??= minId - request("/locations/\(locationId)/media/recent", parameters: parameters, success: { data in success?(data!) }, failure: failure) + request("/locations/\(locationId)/media/recent", parameters: parameters, success: success, failure: failure) } /// Search for a location by geographic coordinate. @@ -62,7 +61,6 @@ extension Instagram { facebookPlacesId: String? = nil, success: SuccessHandler<[InstagramLocation]>?, failure: FailureHandler?) { - var parameters = Parameters() parameters["lat"] ??= latitude @@ -70,7 +68,7 @@ extension Instagram { parameters["distance"] ??= distance parameters["facebook_places_id"] ??= facebookPlacesId - request("/locations/search", parameters: parameters, success: { data in success?(data!) }, failure: failure) + request("/locations/search", parameters: parameters, success: success, failure: failure) } /// Search for a location by geographic coordinate. @@ -87,8 +85,11 @@ extension Instagram { facebookPlacesId: String? = nil, success: SuccessHandler<[InstagramLocation]>?, failure: FailureHandler?) { - - searchLocation(latitude: coordinates?.latitude, longitude: coordinates?.longitude, - distance: distance, facebookPlacesId: facebookPlacesId, success: success, failure: failure) + searchLocation(latitude: coordinates?.latitude, + longitude: coordinates?.longitude, + distance: distance, + facebookPlacesId: facebookPlacesId, + success: success, + failure: failure) } } diff --git a/Sources/Endpoints/Media.swift b/Sources/Endpoints/Media.swift index 109ac44..a39c721 100755 --- a/Sources/Endpoints/Media.swift +++ b/Sources/Endpoints/Media.swift @@ -10,7 +10,7 @@ import CoreLocation extension Instagram { - // MARK: - Media Endpoints + // MARK: Media Endpoints /// Get information about a media object. /// @@ -20,7 +20,7 @@ extension Instagram { /// /// - important: It requires *public_content* scope. public func media(withId id: String, success: SuccessHandler?, failure: FailureHandler?) { - request("/media/\(id)", success: { data in success?(data!) }, failure: failure) + request("/media/\(id)", success: success, failure: failure) } /// Get information about a media object. @@ -34,7 +34,7 @@ extension Instagram { /// - note: A media object's shortcode can be found in its shortlink URL. /// An example shortlink is http://instagram.com/p/tsxp1hhQTG/. Its corresponding shortcode is tsxp1hhQTG. public func media(withShortcode shortcode: String, success: SuccessHandler?, failure: FailureHandler?) { - request("/media/shortcode/\(shortcode)", success: { data in success?(data!) }, failure: failure) + request("/media/shortcode/\(shortcode)", success: success, failure: failure) } /// Search for recent media in a given area. @@ -51,14 +51,13 @@ extension Instagram { distance: Int? = nil, success: SuccessHandler<[InstagramMedia]>?, failure: FailureHandler?) { - var parameters = Parameters() parameters["lat"] ??= latitude parameters["lng"] ??= longitude parameters["distance"] ??= distance - request("/media/search", parameters: parameters, success: { data in success?(data!) }, failure: failure) + request("/media/search", parameters: parameters, success: success, failure: failure) } /// Search for recent media in a given area. @@ -73,7 +72,6 @@ extension Instagram { distance: Int? = nil, success: SuccessHandler<[InstagramMedia]>?, failure: FailureHandler?) { - searchMedia(latitude: coordinates?.latitude, longitude: coordinates?.longitude, distance: distance, success: success, failure: failure) } } diff --git a/Sources/Endpoints/Relationships.swift b/Sources/Endpoints/Relationships.swift index f64484f..41448da 100755 --- a/Sources/Endpoints/Relationships.swift +++ b/Sources/Endpoints/Relationships.swift @@ -8,7 +8,7 @@ extension Instagram { - // MARK: - Relationship Endpoints + // MARK: Relationship Endpoints /// Relationship actions currently supported by Instagram. private enum RelationshipAction: String { @@ -22,7 +22,7 @@ extension Instagram { /// /// - important: It requires *follower_list* scope. public func userFollows(success: SuccessHandler<[InstagramUser]>?, failure: FailureHandler?) { - request("/users/self/follows", success: { data in success?(data!) }, failure: failure) + request("/users/self/follows", success: success, failure: failure) } /// Get the list of users this user is followed by. @@ -32,7 +32,7 @@ extension Instagram { /// /// - important: It requires *follower_list* scope. public func userFollowers(success: SuccessHandler<[InstagramUser]>?, failure: FailureHandler?) { - request("/users/self/followed-by", success: { data in success?(data!) }, failure: failure) + request("/users/self/followed-by", success: success, failure: failure) } /// List the users who have requested this user's permission to follow. @@ -42,7 +42,7 @@ extension Instagram { /// /// - important: It requires *follower_list* scope. public func userRequestedBy(success: SuccessHandler<[InstagramUser]>?, failure: FailureHandler?) { - request("/users/self/requested-by", success: { data in success?(data!) }, failure: failure) + request("/users/self/requested-by", success: success, failure: failure) } /// Get information about a relationship to another user. @@ -53,7 +53,7 @@ extension Instagram { /// /// - important: It requires *follower_list* scope. public func userRelationship(withUser userId: String, success: SuccessHandler?, failure: FailureHandler?) { - request("/users/\(userId)/relationship", success: { data in success?(data!) }, failure: failure) + request("/users/\(userId)/relationship", success: success, failure: failure) } /// Modify the relationship between the current user and the target user. @@ -69,7 +69,7 @@ extension Instagram { success: SuccessHandler?, failure: FailureHandler?) { - request("/users/\(userId)/relationship", method: .post, parameters: ["action": action.rawValue], success: { data in success?(data!) }, failure: failure) + request("/users/\(userId)/relationship", method: .post, parameters: ["action": action.rawValue], success: success, failure: failure) } /// Follows the target user. diff --git a/Sources/Endpoints/Tags.swift b/Sources/Endpoints/Tags.swift index 294f82b..5bd891e 100755 --- a/Sources/Endpoints/Tags.swift +++ b/Sources/Endpoints/Tags.swift @@ -8,7 +8,7 @@ extension Instagram { - // MARK: - Tag Endpoints + // MARK: Tag Endpoints /// Get information about a tag object. /// @@ -18,7 +18,7 @@ extension Instagram { /// /// - important: It requires *public_content* scope. public func tag(_ tagName: String, success: SuccessHandler?, failure: FailureHandler?) { - request("/tags/\(tagName)", success: { data in success?(data!) }, failure: failure) + request("/tags/\(tagName)", success: success, failure: failure) } /// Get a list of recently tagged media. @@ -37,14 +37,13 @@ extension Instagram { count: Int? = nil, success: SuccessHandler<[InstagramMedia]>?, failure: FailureHandler?) { - var parameters = Parameters() parameters["max_tag_id"] ??= maxTagId parameters["min_tag_id"] ??= minTagId parameters["count"] ??= count - request("/tags/\(tagName)/media/recent", parameters: parameters, success: { data in success?(data!) }, failure: failure) + request("/tags/\(tagName)/media/recent", parameters: parameters, success: success, failure: failure) } /// Search for tags by name. @@ -55,6 +54,6 @@ extension Instagram { /// /// - important: It requires *public_content* scope. public func search(tag query: String, success: SuccessHandler<[InstagramTag]>?, failure: FailureHandler?) { - request("/tags/search", parameters: ["q": query], success: { data in success?(data!) }, failure: failure) + request("/tags/search", parameters: ["q": query], success: success, failure: failure) } } diff --git a/Sources/Endpoints/Users.swift b/Sources/Endpoints/Users.swift index 5edc6bf..bbb5511 100755 --- a/Sources/Endpoints/Users.swift +++ b/Sources/Endpoints/Users.swift @@ -8,7 +8,7 @@ extension Instagram { - // MARK: - User Endpoints + // MARK: User Endpoints /// Get information about a user. /// @@ -18,7 +18,7 @@ extension Instagram { /// /// - important: It requires *public_content* scope when getting information about a user other than yours. public func user(_ userId: String, success: SuccessHandler?, failure: FailureHandler?) { - request("/users/\(userId)", success: { data in success?(data!) }, failure: failure) + request("/users/\(userId)", success: success, failure: failure) } /// Get the most recent media published by a user. @@ -37,14 +37,13 @@ extension Instagram { count: Int? = nil, success: SuccessHandler<[InstagramMedia]>?, failure: FailureHandler?) { - var parameters = Parameters() parameters["max_id"] ??= maxId parameters["min_id"] ??= minId parameters["count"] ??= count - request("/users/\(userId)/media/recent", parameters: parameters, success: { data in success?(data!) }, failure: failure) + request("/users/\(userId)/media/recent", parameters: parameters, success: success, failure: failure) } /// Get the list of recent media liked by the currently authenticated user. @@ -61,7 +60,7 @@ extension Instagram { parameters["max_like_id"] ??= maxLikeId parameters["count"] ??= count - request("/users/self/media/liked", parameters: parameters, success: { data in success?(data!) }, failure: failure) + request("/users/self/media/liked", parameters: parameters, success: success, failure: failure) } /// Get a list of users matching the query. @@ -78,6 +77,6 @@ extension Instagram { parameters["q"] = query parameters["count"] ??= count - request("/users/search", parameters: parameters, success: { data in success?(data!) }, failure: failure) + request("/users/search", parameters: parameters, success: success, failure: failure) } } diff --git a/Sources/Instagram.swift b/Sources/Instagram.swift index 0b45011..b1e914a 100755 --- a/Sources/Instagram.swift +++ b/Sources/Instagram.swift @@ -11,15 +11,15 @@ import UIKit /// A set of helper functions to make the Instagram API easier to use. public class Instagram { - // MARK: - Types + // MARK: Types - /// Empty success handler + /// Empty success handler. public typealias EmptySuccessHandler = () -> Void - /// Success handler + /// Success handler. public typealias SuccessHandler = (_ data: T) -> Void - /// Failure handler + /// Failure handler. public typealias FailureHandler = (_ error: Error) -> Void private enum API { @@ -35,14 +35,14 @@ public class Instagram { case get = "GET", post = "POST", delete = "DELETE" } - // MARK: - Properties + // MARK: Properties private let urlSession = URLSession(configuration: .default) private let keychain = KeychainSwift(keyPrefix: "SwiftInstagram_") private var client: (id: String?, redirectURI: String?)? - // MARK: - Initializers + // MARK: Initializers /// Returns a shared instance of Instagram. public static let shared = Instagram() @@ -55,7 +55,7 @@ public class Instagram { } } - // MARK: - Authentication + // MARK: Authentication /// Starts an authentication process. /// @@ -113,7 +113,7 @@ public class Instagram { return retrieveAccessToken() != nil } - // MARK: - Access Token + // MARK: Access Token /// Store your own authenticated access token so you don't have to use the included login authentication. public func storeAccessToken(_ accessToken: String) -> Bool { @@ -129,17 +129,17 @@ public class Instagram { return keychain.delete(Keychain.accessTokenKey) } - // MARK: - + // MARK: Request func request(_ endpoint: String, method: HTTPMethod = .get, parameters: Parameters = [:], - success: ((_ data: T?) -> Void)?, + success: SuccessHandler?, failure: FailureHandler?) { let urlRequest = buildURLRequest(endpoint, method: method, parameters: parameters) - urlSession.dataTask(with: urlRequest) { (data, _, error) in + urlSession.dataTask(with: urlRequest) { data, _, error in if let data = data { DispatchQueue.global(qos: .utility).async { do { @@ -155,10 +155,6 @@ public class Instagram { DispatchQueue.main.async { failure?(InstagramError.invalidRequest(message: message)) } - } else { - DispatchQueue.main.async { - success?(nil) - } } } catch let error { DispatchQueue.main.async { diff --git a/Sources/Models/InstagramComment.swift b/Sources/Models/InstagramComment.swift index 17e3388..4adb4a3 100755 --- a/Sources/Models/InstagramComment.swift +++ b/Sources/Models/InstagramComment.swift @@ -9,7 +9,7 @@ /// The struct containing an Instagram comment. public struct InstagramComment: Decodable { - // MARK: - Properties + // MARK: Properties /// The comment identifier. public let id: String @@ -23,13 +23,13 @@ public struct InstagramComment: Decodable { /// The date and time when the comment was created. public let createdDate: Date - // MARK: - Types + // MARK: Types private enum CodingKeys: String, CodingKey { case id, text, from, createdTime } - // MARK: - Initializers + // MARK: Initializers public init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) diff --git a/Sources/Models/InstagramError.swift b/Sources/Models/InstagramError.swift index 68daf0a..cc6e3a1 100755 --- a/Sources/Models/InstagramError.swift +++ b/Sources/Models/InstagramError.swift @@ -9,18 +9,18 @@ /// A type representing an error value that can be thrown. public enum InstagramError: Error { - /// Error 400 on login + /// Error 400 on login. case badRequest - /// Error decoding JSON + /// Error decoding JSON. case decoding(message: String) - /// Invalid API request + /// Invalid API request. case invalidRequest(message: String) - /// Keychain error + /// Keychain error. case keychainError(code: OSStatus) - /// The client id or the redirect URI is missing inside the Info.plist file + /// The client id or the redirect URI is missing inside the Info.plist file. case missingClientIdOrRedirectURI } diff --git a/Sources/Models/InstagramLocation.swift b/Sources/Models/InstagramLocation.swift index 7c80a46..a462425 100755 --- a/Sources/Models/InstagramLocation.swift +++ b/Sources/Models/InstagramLocation.swift @@ -11,7 +11,7 @@ import CoreLocation /// The struct containing an Instagram location. public struct InstagramLocation: Decodable { - // MARK: - Properties + // MARK: Properties /// The location identifier. public let id: T @@ -25,13 +25,13 @@ public struct InstagramLocation: Decodable { /// The location coordinates (latitude and longitude). public let coordinates: CLLocationCoordinate2D - // MARK: - Types + // MARK: Types private enum CodingKeys: String, CodingKey { case id, name, streetAddress, latitude, longitude } - // MARK: - Initializers + // MARK: Initializers public init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) diff --git a/Sources/Models/InstagramMedia.swift b/Sources/Models/InstagramMedia.swift index 2be1b9d..f1b5cf8 100755 --- a/Sources/Models/InstagramMedia.swift +++ b/Sources/Models/InstagramMedia.swift @@ -11,7 +11,7 @@ import CoreLocation /// The struct containing an Instagram media. public struct InstagramMedia: Decodable { - // MARK: - Properties + // MARK: Properties /// The media identifier. public let id: String @@ -64,7 +64,7 @@ public struct InstagramMedia: Decodable { /// The distance to the location of media when it has been searched by location. public let distance: Double? - // MARK: - Types + // MARK: Types /// A struct cointaing the number of elements. public struct Count: Decodable { @@ -160,7 +160,7 @@ public struct InstagramMedia: Decodable { userHasLiked, filter, link, location, usersInPhoto, carouselMedia, distance } - // MARK: - Initializers + // MARK: Initializers public init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) diff --git a/Sources/Models/InstagramRelationship.swift b/Sources/Models/InstagramRelationship.swift index 1b224ec..9313bae 100755 --- a/Sources/Models/InstagramRelationship.swift +++ b/Sources/Models/InstagramRelationship.swift @@ -9,7 +9,7 @@ /// The struct containing an Instagram relationship. public struct InstagramRelationship: Decodable { - // MARK: - Properties + // MARK: Properties /// Your relationship to the user. It can be "follows", "requested" or "none". public let outgoingStatus: String diff --git a/Sources/Models/InstagramResponse.swift b/Sources/Models/InstagramResponse.swift index 090dc38..0502564 100755 --- a/Sources/Models/InstagramResponse.swift +++ b/Sources/Models/InstagramResponse.swift @@ -8,13 +8,13 @@ struct InstagramResponse: Decodable { - // MARK: - Properties + // MARK: Properties let data: T? let meta: Meta let pagination: Pagination? - // MARK: - Types + // MARK: Types struct Meta: Decodable { let code: Int @@ -28,5 +28,5 @@ struct InstagramResponse: Decodable { } } -/// Dummy struct used for empty Instagram API data responses +/// Dummy struct used for empty Instagram API data responses. public struct InstagramEmptyResponse: Decodable { } diff --git a/Sources/Models/InstagramTag.swift b/Sources/Models/InstagramTag.swift index 7e712ac..e3c8f36 100755 --- a/Sources/Models/InstagramTag.swift +++ b/Sources/Models/InstagramTag.swift @@ -9,7 +9,7 @@ /// The struct containing an Instagram tag. public struct InstagramTag: Decodable { - // MARK: - Properties + // MARK: Properties /// The tag name. public let name: String diff --git a/Sources/Models/InstagramUser.swift b/Sources/Models/InstagramUser.swift index 81e245d..3a6ed06 100755 --- a/Sources/Models/InstagramUser.swift +++ b/Sources/Models/InstagramUser.swift @@ -9,7 +9,7 @@ /// The struct containing an Instagram user. public struct InstagramUser: Decodable { - // MARK: - Properties + // MARK: Properties /// The user identifier. public let id: String @@ -35,7 +35,7 @@ public struct InstagramUser: Decodable { /// A Counts object that contains the number of followers, following and media of a user. public let counts: Counts? - // MARK: - Types + // MARK: Types /// The struct containing the number of followers, following and media of a user. public struct Counts: Decodable { diff --git a/Sources/Views/InstagramLoginViewController.swift b/Sources/Views/InstagramLoginViewController.swift index 12ef299..c273055 100755 --- a/Sources/Views/InstagramLoginViewController.swift +++ b/Sources/Views/InstagramLoginViewController.swift @@ -11,12 +11,12 @@ import WebKit class InstagramLoginViewController: UIViewController { - // MARK: - Types + // MARK: Types typealias SuccessHandler = (_ accesToken: String) -> Void typealias FailureHandler = (_ error: InstagramError) -> Void - // MARK: - Properties + // MARK: Properties private var authURL: URL private var success: SuccessHandler? @@ -25,7 +25,7 @@ class InstagramLoginViewController: UIViewController { private var progressView: UIProgressView! private var webViewObservation: NSKeyValueObservation! - // MARK: - Initializers + // MARK: Initializers required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") @@ -39,7 +39,7 @@ class InstagramLoginViewController: UIViewController { super.init(nibName: nil, bundle: nil) } - // MARK: - View Lifecycle + // MARK: View Lifecycle override func viewDidLoad() { super.viewDidLoad() @@ -52,7 +52,7 @@ class InstagramLoginViewController: UIViewController { setupProgressView() // Initializes web view - let webView = setupWebView() + let webView = makeWebView() // Starts authorization webView.load(URLRequest(url: authURL, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)) @@ -63,7 +63,7 @@ class InstagramLoginViewController: UIViewController { webViewObservation.invalidate() } - // MARK: - + // MARK: Setup private func setupProgressView() { let navBar = navigationController!.navigationBar @@ -76,24 +76,39 @@ class InstagramLoginViewController: UIViewController { navBar.addSubview(progressView) let bottomConstraint = navBar.bottomAnchor.constraint(equalTo: progressView.bottomAnchor, constant: 1) - let leftConstraint = navBar.leadingAnchor.constraint(equalTo: progressView.leadingAnchor) - let rightConstraint = navBar.trailingAnchor.constraint(equalTo: progressView.trailingAnchor) + let leadingConstraint = navBar.leadingAnchor.constraint(equalTo: progressView.leadingAnchor) + let trailingConstraint = navBar.trailingAnchor.constraint(equalTo: progressView.trailingAnchor) - NSLayoutConstraint.activate([bottomConstraint, leftConstraint, rightConstraint]) + NSLayoutConstraint.activate([bottomConstraint, leadingConstraint, trailingConstraint]) } - private func setupWebView() -> WKWebView { + private func makeWebView() -> WKWebView { let webConfiguration = WKWebViewConfiguration() webConfiguration.websiteDataStore = .nonPersistent() let webView = WKWebView(frame: view.frame, configuration: webConfiguration) - webView.autoresizingMask = [.flexibleWidth, .flexibleHeight] webView.navigationDelegate = self + webView.translatesAutoresizingMaskIntoConstraints = false webViewObservation = webView.observe(\.estimatedProgress, changeHandler: progressViewChangeHandler) view.addSubview(webView) + var topAnchor = view.topAnchor + var bottomAnchor = view.bottomAnchor + + if #available(iOS 11.0, *) { + topAnchor = view.safeAreaLayoutGuide.topAnchor + bottomAnchor = view.safeAreaLayoutGuide.bottomAnchor + } + + let topConstraint = webView.topAnchor.constraint(equalTo: topAnchor) + let bottomConstraint = webView.bottomAnchor.constraint(equalTo: bottomAnchor) + let leadingAnchor = webView.leadingAnchor.constraint(equalTo: view.leadingAnchor) + let trailingAnchor = webView.trailingAnchor.constraint(equalTo: view.trailingAnchor) + + NSLayoutConstraint.activate([topConstraint, bottomConstraint, leadingAnchor, trailingAnchor]) + return webView } @@ -104,7 +119,7 @@ class InstagramLoginViewController: UIViewController { if webView.estimatedProgress >= 1.0 { UIView.animate(withDuration: 0.3, delay: 0.1, options: .curveEaseInOut, animations: { self.progressView.alpha = 0.0 - }, completion: { (_ finished) in + }, completion: { _ in self.progressView.progress = 0 }) } diff --git a/SwiftInstagram.podspec b/SwiftInstagram.podspec index 80b5e88..08d0d4f 100755 --- a/SwiftInstagram.podspec +++ b/SwiftInstagram.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'SwiftInstagram' - s.version = '1.1.1' + s.version = '1.1.2' s.cocoapods_version = '>= 1.1.0' s.authors = { 'Ander Goig' => 'goig.ander@gmail.com' } s.license = { :type => 'MIT', :file => 'LICENSE' } diff --git a/SwiftInstagram.xcodeproj/project.pbxproj b/SwiftInstagram.xcodeproj/project.pbxproj index 4d8d62a..45be184 100644 --- a/SwiftInstagram.xcodeproj/project.pbxproj +++ b/SwiftInstagram.xcodeproj/project.pbxproj @@ -509,7 +509,7 @@ 3549BB1D1DA389CD00C63030 /* Frameworks */, 3549BB1E1DA389CD00C63030 /* Headers */, 3549BB1F1DA389CD00C63030 /* Resources */, - 772B71B91F76B0010070E053 /* SwiftLint */, + 772B71B91F76B0010070E053 /* Run SwiftLint */, ); buildRules = ( ); @@ -552,12 +552,13 @@ TargetAttributes = { 3549BB201DA389CD00C63030 = { CreatedOnToolsVersion = 8.0; - LastSwiftMigration = 0900; + LastSwiftMigration = 1000; ProvisioningStyle = Automatic; }; 3549BB601DA38ADB00C63030 = { CreatedOnToolsVersion = 8.0; - LastSwiftMigration = 0900; + DevelopmentTeam = 75Z728ZJJT; + LastSwiftMigration = 1000; ProvisioningStyle = Automatic; }; }; @@ -737,14 +738,14 @@ /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ - 772B71B91F76B0010070E053 /* SwiftLint */ = { + 772B71B91F76B0010070E053 /* Run SwiftLint */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputPaths = ( ); - name = SwiftLint; + name = "Run SwiftLint"; outputPaths = ( ); runOnlyForDeploymentPostprocessing = 0; @@ -863,7 +864,7 @@ SDKROOT = iphoneos; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 4.0; + SWIFT_VERSION = 4.2; TARGETED_DEVICE_FAMILY = "1,2"; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; @@ -911,7 +912,7 @@ MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; - SWIFT_VERSION = 4.0; + SWIFT_VERSION = 4.2; TARGETED_DEVICE_FAMILY = "1,2"; VALIDATE_PRODUCT = YES; VERSIONING_SYSTEM = "apple-generic"; @@ -941,7 +942,7 @@ PRODUCT_NAME = SwiftInstagram; SKIP_INSTALL = YES; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 4.0; + SWIFT_VERSION = 4.2; }; name = Debug; }; @@ -966,7 +967,7 @@ PRODUCT_BUNDLE_IDENTIFIER = me.andergoig.SwiftInstagram; PRODUCT_NAME = SwiftInstagram; SKIP_INSTALL = YES; - SWIFT_VERSION = 4.0; + SWIFT_VERSION = 4.2; }; name = Release; }; @@ -976,6 +977,7 @@ buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; CLANG_ENABLE_MODULES = YES; + DEVELOPMENT_TEAM = 75Z728ZJJT; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/Carthage/Build/iOS", @@ -985,7 +987,7 @@ PRODUCT_BUNDLE_IDENTIFIER = me.andergoig.SwiftInstagramTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 4.0; + SWIFT_VERSION = 4.2; }; name = Debug; }; @@ -995,6 +997,7 @@ buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; CLANG_ENABLE_MODULES = YES; + DEVELOPMENT_TEAM = 75Z728ZJJT; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/Carthage/Build/iOS", @@ -1003,7 +1006,7 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(PROJECT_DIR)/Carthage/Build/iOS"; PRODUCT_BUNDLE_IDENTIFIER = me.andergoig.SwiftInstagramTests; PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 4.0; + SWIFT_VERSION = 4.2; }; name = Release; }; diff --git a/docs/API.html b/docs/API.html index aa0182a..401d6e2 100644 --- a/docs/API.html +++ b/docs/API.html @@ -14,6 +14,7 @@ + @@ -176,8 +177,8 @@

Declaration

diff --git a/docs/Authentication.html b/docs/Authentication.html index 75f8259..f1ab55e 100644 --- a/docs/Authentication.html +++ b/docs/Authentication.html @@ -14,6 +14,7 @@ + @@ -161,7 +162,7 @@

Authentication

Declaration

Swift

-
public enum InstagramScope: String
+
public enum InstagramScope : String
@@ -176,8 +177,8 @@

Declaration

diff --git a/docs/Classes/Instagram.html b/docs/Classes/Instagram.html index cd84e26..f6c5ee8 100644 --- a/docs/Classes/Instagram.html +++ b/docs/Classes/Instagram.html @@ -168,7 +168,7 @@

Types

-

Empty success handler

+

Empty success handler.

@@ -195,7 +195,7 @@

Declaration

-

Success handler

+

Success handler.

@@ -222,7 +222,7 @@

Declaration

-

Failure handler

+

Failure handler.

@@ -267,7 +267,7 @@

Initializers

Declaration

Swift

-
public static let shared = Instagram()
+
public static let shared: Instagram
@@ -288,9 +288,9 @@

Authentication

  • @@ -392,7 +392,8 @@

    Parameters

    Declaration

    Swift

    -
    public func logout() -> Bool
    +
    @discardableResult
    +public func logout() -> Bool
    @@ -423,7 +424,7 @@

    Return Value

    Declaration

    Swift

    -
    public var isAuthenticated: Bool
    +
    public var isAuthenticated: Bool { get }
  • @@ -444,9 +445,9 @@

    Access Token

  • @@ -509,9 +510,9 @@

    Comment Endpoints

  • @@ -572,9 +573,9 @@

    Parameters

  • @@ -659,9 +660,9 @@

    Parameters

  • @@ -735,19 +736,19 @@

    Parameters

    • @@ -755,10 +756,10 @@

      Tag Endpoints

      -

      Get information about a tag object.

      +

      Get a list of users who have liked this media.

      Important

      -

      It requires public_content scope.

      +

      It requires public_content scope for media that does not belong to your own user.

      @@ -767,7 +768,7 @@

      Tag Endpoints

      Declaration

      Swift

      -
      public func tag(_ tagName: String, success: SuccessHandler<InstagramTag>?, failure: FailureHandler?)
      +
      public func likes(inMedia mediaId: String, success: SuccessHandler<[InstagramUser]>?, failure: FailureHandler?)
      @@ -778,12 +779,12 @@

      Parameters

      - tagName + mediaId
      -

      The name of the tag to reference.

      +

      The ID of the media object to reference.

      @@ -820,9 +821,9 @@

      Parameters

    • @@ -830,10 +831,10 @@

      Parameters

      -

      Get a list of recently tagged media.

      +

      Set a like on this media by the currently authenticated user.

      Important

      -

      It requires public_content scope.

      +

      It requires likes scope. Also, public_content scope is required for media that does not belong to your own user.

      @@ -842,12 +843,7 @@

      Parameters

      Declaration

      Swift

      -
      public func recentMedia(withTag tagName: String,
      -                        maxTagId: String? = nil,
      -                        minTagId: String? = nil,
      -                        count: Int? = nil,
      -                        success: SuccessHandler<[InstagramMedia]>?,
      -                        failure: FailureHandler?)
      +
      public func like(media mediaId: String, success: EmptySuccessHandler?, failure: FailureHandler?)
      @@ -858,60 +854,12 @@

      Parameters

      - tagName - - - -
      -

      The name of the tag to reference.

      -
      - - - - - - maxTagId - - - -
      -

      Return media after this maxTagId.

      -
      - - - - - - minTagId - - - -
      -

      Return media before this minTagId.

      -
      - - - - - - count - - - -
      -

      Count of tagged media to return.

      -
      - - - - - - success + mediaId
      -

      The callback called after a correct retrieval.

      +

      The ID of the media object to reference.

      @@ -923,7 +871,7 @@

      Parameters

      -

      The callback called after an incorrect retrieval.

      +

      The callback called after an incorrect like.

      @@ -936,9 +884,9 @@

      Parameters

    • @@ -946,10 +894,10 @@

      Parameters

      -

      Search for tags by name.

      +

      Remove a like on this media by the currently authenticated user.

      Important

      -

      It requires public_content scope.

      +

      It requires likes scope. Also, public_content scope is required for media that does not belong to your own user.

      @@ -958,7 +906,7 @@

      Parameters

      Declaration

      Swift

      -
      public func search(tag query: String, success: SuccessHandler<[InstagramTag]>?, failure: FailureHandler?)
      +
      public func unlike(media mediaId: String, success: EmptySuccessHandler?, failure: FailureHandler?)
      @@ -966,30 +914,6 @@

      Declaration

      Parameters

      - - - - - - - - @@ -1012,19 +936,19 @@

      Parameters

      @@ -1097,9 +1021,9 @@

      Parameters

    • @@ -1107,10 +1031,10 @@

      Parameters

      -

      Get the most recent media published by a user.

      +

      Get a list of recent media objects from a given location.

      Important

      -

      It requires public_content scope when getting recent media published by a user other than yours.

      +

      It requires public_content scope.

      @@ -1119,10 +1043,9 @@

      Parameters

      Declaration

      Swift

      -
      public func recentMedia(fromUser userId: String,
      +                          
      public func recentMedia(forLocation locationId: String,
                               maxId: String? = nil,
                               minId: String? = nil,
      -                        count: Int? = nil,
                               success: SuccessHandler<[InstagramMedia]>?,
                               failure: FailureHandler?)
      @@ -1135,12 +1058,12 @@

      Parameters

    • @@ -1152,7 +1075,7 @@

      Parameters

      @@ -1164,19 +1087,7 @@

      Parameters

      - - - - @@ -1213,9 +1124,9 @@

      Parameters

    • @@ -1223,7 +1134,7 @@

      Parameters

      -

      Get the list of recent media liked by the currently authenticated user.

      +

      Search for a location by geographic coordinate.

      Important

      It requires public_content scope.

      @@ -1235,7 +1146,12 @@

      Parameters

      Declaration

      Swift

      -
      public func userLikedMedia(maxLikeId: String? = nil, count: Int? = nil, success: SuccessHandler<[InstagramMedia]>?, failure: FailureHandler?)
      +
      public func searchLocation(latitude: Double? = nil,
      +                           longitude: Double? = nil,
      +                           distance: Int? = nil,
      +                           facebookPlacesId: String? = nil,
      +                           success: SuccessHandler<[InstagramLocation<String>]>?,
      +                           failure: FailureHandler?)
      @@ -1246,111 +1162,48 @@

      Parameters

    • - - - - - - - -
      - - query - - -
      -

      A valid tag name without a leading #. (eg. snowy, nofilter)

      -
      -
      - - success - - -
      -

      The callback called after a correct retrieval.

      -
      -
      @@ -998,7 +922,7 @@

      Parameters

      -

      The callback called after an incorrect retrieval.

      +

      The callback called after an incorrect deletion.

      - userId + locationId
      -

      The ID of the user whose information to retrieve, or self to reference the currently authenticated user.

      +

      The ID of the location to reference.

      - userId + locationId
      -

      The ID of the user whose recent media to retrieve, or self to reference the currently authenticated user.

      +

      The ID of the location to reference.

      -

      Return media earlier than this maxId.

      +

      Return media after this maxId.

      -

      Return media later than this minId.

      -
      -
      - - count - - -
      -

      Count of media to return.

      +

      Return media before this mindId.

      - maxLikeId - - -
      -

      Return media liked before this id.

      -
      -
      - - count + latitude
      -

      Count of media to return.

      +

      Latitude of the center search coordinate. If used, longitude is required.

      - success + longitude
      -

      The callback called after a correct retrieval.

      +

      Longitude of the center search coordinate. If used, latitude is required.

      - failure - - -
      -

      The callback called after an incorrect retrieval.

      -
      -
      -
      -
    • -
      -
    • -
    • - -
      -
      -
      -
      -
      -

      Get a list of users matching the query.

      -
      -

      Important

      -

      It requires public_content scope.

      - -
      - -
      -
      -

      Declaration

      -
      -

      Swift

      -
      public func search(user query: String, count: Int? = nil, success: SuccessHandler<[InstagramUser]>?, failure: FailureHandler?)
      - -
      -
      -
      -

      Parameters

      - - - - @@ -1384,23 +1237,12 @@

      Parameters

      - - -
      - -
      - - - - - -
      - - query + distance
      -

      A query string.

      +

      Default is 500m, max distance is 750.

      - count + facebookPlacesId
      -

      Number of users to return.

      +

      Returns a location mapped off of a Facebook places id. If used, coordinates is not required.

      - mediaId - - -
      -

      The ID of the media object to reference.

      -
      -
      - - success + coordinates
      -

      The callback called after a correct retrieval.

      +

      Latitude and longitude of the center search coordinates.

      - failure + distance
      -

      The callback called after an incorrect retrieval.

      +

      Default is 500m, max distance is 750.

      -
      -
      -
      -
    • -
    • - -
      -
      -
      -
      -
      -

      Set a like on this media by the currently authenticated user.

      -
      -

      Important

      -

      It requires likes scope. Also, public_content scope is required for media that does not belong to your own user.

      - -
      - -
      -
      -

      Declaration

      -
      -

      Swift

      -
      public func like(media mediaId: String, success: EmptySuccessHandler?, failure: FailureHandler?)
      - -
      -
      -
      -

      Parameters

      - - - -
      - mediaId + facebookPlacesId
      -

      The ID of the media object to reference.

      +

      Returns a location mapped off of a Facebook places id. If used, coordinates is not required.

      - failure + success
      -

      The callback called after an incorrect like.

      +

      The callback called after a correct retrieval.

      -
      -
      -
      -
    • -
    • - -
      -
      -
      -
      -
      -

      Remove a like on this media by the currently authenticated user.

      -
      -

      Important

      -

      It requires likes scope. Also, public_content scope is required for media that does not belong to your own user.

      - -
      - -
      -
      -

      Declaration

      -
      -

      Swift

      -
      public func unlike(media mediaId: String, success: EmptySuccessHandler?, failure: FailureHandler?)
      - -
      -
      -
      -

      Parameters

      - - @@ -1598,9 +1354,9 @@

      Media Endpoints

    • @@ -1673,9 +1429,9 @@

      Parameters

    • @@ -1754,9 +1510,9 @@

      Parameters

    • @@ -1857,9 +1613,9 @@

      Parameters

    • @@ -1958,9 +1714,9 @@

      Relationship Endpoints

    • @@ -2021,9 +1777,9 @@

      Parameters

    • @@ -2084,9 +1840,9 @@

      Parameters

    • @@ -2122,7 +1878,232 @@

      Parameters

    • + + + + + + +
      @@ -1574,7 +1330,7 @@

      Parameters

      -

      The callback called after an incorrect deletion.

      +

      The callback called after an incorrect retrieval.

      -

      The callback called after a correct retrieval.

      +

      The callback called after a correct retrieval.

      +
      +
      + + failure + + +
      +

      The callback called after an incorrect retrieval.

      +
      +
      +
      +
      +
      +
    • +
    • + +
      +
      +
      +
      +
      +

      Get information about a relationship to another user.

      +
      +

      Important

      +

      It requires follower_list scope.

      + +
      + +
      +
      +

      Declaration

      +
      +

      Swift

      +
      public func userRelationship(withUser userId: String, success: SuccessHandler<InstagramRelationship>?, failure: FailureHandler?)
      + +
      +
      +
      +

      Parameters

      + + + + + + + + + + + + + + + +
      + + userId + + +
      +

      The ID of the user to reference.

      +
      +
      + + success + + +
      +

      The callback called after a correct retrieval.

      +
      +
      + + failure + + +
      +

      The callback called after an incorrect retrieval.

      +
      +
      +
      +
      +
      +
    • +
    • + +
      +
      +
      +
      +
      +

      Follows the target user.

      +
      +

      Important

      +

      It requires relationships scope.

      + +
      + +
      +
      +

      Declaration

      +
      +

      Swift

      +
      public func follow(user userId: String, success: SuccessHandler<InstagramRelationship>?, failure: FailureHandler?)
      + +
      +
      +
      +

      Parameters

      + + + + + + + + + + + + + + + +
      + + userId + + +
      +

      The ID of the user to reference.

      +
      +
      + + success + + +
      +

      The callback called after a correct follow.

      +
      +
      + + failure + + +
      +

      The callback called after an incorrect follow.

      +
      +
      +
      +
      +
      +
    • +
    • + +
      +
      +
      +
      +
      +

      Unfollows the target user.

      +
      +

      Important

      +

      It requires relationships scope.

      + +
      + +
      +
      +

      Declaration

      +
      +

      Swift

      +
      public func unfollow(user userId: String, success: SuccessHandler<InstagramRelationship>?, failure: FailureHandler?)
      + +
      +
      +
      +

      Parameters

      + + + + + + + + + @@ -2134,7 +2115,7 @@

      Parameters

      @@ -2147,9 +2128,9 @@

      Parameters

    • @@ -2157,10 +2138,10 @@

      Parameters

      -

      Get information about a relationship to another user.

      +

      Approve the target user’s request.

      Important

      -

      It requires follower_list scope.

      +

      It requires relationships scope.

      @@ -2169,7 +2150,7 @@

      Parameters

      Declaration

      Swift

      -
      public func userRelationship(withUser userId: String, success: SuccessHandler<InstagramRelationship>?, failure: FailureHandler?)
      +
      public func approveRequest(fromUser userId: String, success: SuccessHandler<InstagramRelationship>?, failure: FailureHandler?)
      @@ -2197,7 +2178,7 @@

      Parameters

    • @@ -2209,7 +2190,7 @@

      Parameters

      @@ -2222,9 +2203,9 @@

      Parameters

    • @@ -2232,7 +2213,7 @@

      Parameters

      -

      Follows the target user.

      +

      Ignore the target user’s request.

      Important

      It requires relationships scope.

      @@ -2244,7 +2225,7 @@

      Parameters

      Declaration

      Swift

      -
      public func follow(user userId: String, success: SuccessHandler<InstagramRelationship>?, failure: FailureHandler?)
      +
      public func ignoreRequest(fromUser userId: String, success: SuccessHandler<InstagramRelationship>?, failure: FailureHandler?)
      @@ -2272,7 +2253,7 @@

      Parameters

    • @@ -2284,7 +2265,7 @@

      Parameters

      @@ -2294,12 +2275,23 @@

      Parameters

      + + +
      + +
      @@ -2347,7 +2339,7 @@

      Parameters

      @@ -2359,7 +2351,7 @@

      Parameters

      @@ -2372,9 +2364,9 @@

      Parameters

    • @@ -2382,10 +2374,10 @@

      Parameters

      -

      Approve the target user’s request.

      +

      Get a list of recently tagged media.

      Important

      -

      It requires relationships scope.

      +

      It requires public_content scope.

      @@ -2394,7 +2386,12 @@

      Parameters

      Declaration

      Swift

      -
      public func approveRequest(fromUser userId: String, success: SuccessHandler<InstagramRelationship>?, failure: FailureHandler?)
      +
      public func recentMedia(withTag tagName: String,
      +                        maxTagId: String? = nil,
      +                        minTagId: String? = nil,
      +                        count: Int? = nil,
      +                        success: SuccessHandler<[InstagramMedia]>?,
      +                        failure: FailureHandler?)
      @@ -2405,12 +2402,48 @@

      Parameters

    • + + + + + + + + + + + + @@ -2422,7 +2455,7 @@

      Parameters

      @@ -2434,7 +2467,7 @@

      Parameters

      @@ -2447,9 +2480,9 @@

      Parameters

    • @@ -2457,10 +2490,10 @@

      Parameters

      -

      Ignore the target user’s request.

      +

      Search for tags by name.

      Important

      -

      It requires relationships scope.

      +

      It requires public_content scope.

      @@ -2469,7 +2502,7 @@

      Parameters

      Declaration

      Swift

      -
      public func ignoreRequest(fromUser userId: String, success: SuccessHandler<InstagramRelationship>?, failure: FailureHandler?)
      +
      public func search(tag query: String, success: SuccessHandler<[InstagramTag]>?, failure: FailureHandler?)
      @@ -2480,12 +2513,12 @@

      Parameters

    • @@ -2497,7 +2530,7 @@

      Parameters

      @@ -2509,7 +2542,7 @@

      Parameters

      @@ -2523,19 +2556,19 @@

      Parameters

      @@ -2608,9 +2641,9 @@

      Parameters

    • @@ -2618,10 +2651,10 @@

      Parameters

      -

      Get a list of recent media objects from a given location.

      +

      Get the most recent media published by a user.

      Important

      -

      It requires public_content scope.

      +

      It requires public_content scope when getting recent media published by a user other than yours.

      @@ -2630,9 +2663,10 @@

      Parameters

      Declaration

      Swift

      -
      public func recentMedia(forLocation locationId: String,
      +                          
      public func recentMedia(fromUser userId: String,
                               maxId: String? = nil,
                               minId: String? = nil,
      +                        count: Int? = nil,
                               success: SuccessHandler<[InstagramMedia]>?,
                               failure: FailureHandler?)
      @@ -2645,12 +2679,12 @@

      Parameters

    • @@ -2662,7 +2696,7 @@

      Parameters

      @@ -2674,7 +2708,19 @@

      Parameters

      + + + + @@ -2711,9 +2757,9 @@

      Parameters

    • @@ -2721,7 +2767,7 @@

      Parameters

      -

      Search for a location by geographic coordinate.

      +

      Get the list of recent media liked by the currently authenticated user.

      Important

      It requires public_content scope.

      @@ -2733,12 +2779,7 @@

      Parameters

      Declaration

      Swift

      -
      public func searchLocation(latitude: Double? = nil,
      -                           longitude: Double? = nil,
      -                           distance: Int? = nil,
      -                           facebookPlacesId: String? = nil,
      -                           success: SuccessHandler<[InstagramLocation<String>]>?,
      -                           failure: FailureHandler?)
      +
      public func userLikedMedia(maxLikeId: String? = nil, count: Int? = nil, success: SuccessHandler<[InstagramMedia]>?, failure: FailureHandler?)
      @@ -2749,48 +2790,24 @@

      Parameters

    • - - - - - - - - @@ -2827,9 +2844,9 @@

      Parameters

    • @@ -2837,7 +2854,7 @@

      Parameters

      -

      Search for a location by geographic coordinate.

      +

      Get a list of users matching the query.

      Important

      It requires public_content scope.

      @@ -2849,11 +2866,7 @@

      Parameters

      Declaration

      Swift

      -
      public func searchLocation(coordinates: CLLocationCoordinate2D? = nil,
      -                           distance: Int? = nil,
      -                           facebookPlacesId: String? = nil,
      -                           success: SuccessHandler<[InstagramLocation<String>]>?,
      -                           failure: FailureHandler?)
      +
      public func search(user query: String, count: Int? = nil, success: SuccessHandler<[InstagramUser]>?, failure: FailureHandler?)
      @@ -2864,36 +2877,24 @@

      Parameters

    • - - - - @@ -2935,8 +2936,8 @@

      Parameters

      diff --git a/docs/Enums/InstagramError.html b/docs/Enums/InstagramError.html index f98fbd0..8e5ad4b 100644 --- a/docs/Enums/InstagramError.html +++ b/docs/Enums/InstagramError.html @@ -135,7 +135,7 @@

      InstagramError

      -
      public enum InstagramError: Error
      +
      public enum InstagramError : Error
      @@ -151,9 +151,9 @@

      InstagramError

    • @@ -161,7 +161,7 @@

      InstagramError

      -

      Error 400 on login

      +

      Error 400 on login.

      @@ -175,16 +175,12 @@

      Declaration

    • - - -
      -
      • @@ -192,7 +188,7 @@

        Declaration

        -

        Error decoding JSON

        +

        Error decoding JSON.

        @@ -206,16 +202,12 @@

        Declaration

      • -
      -
      -
      - -
      -
      - -
      -
      -
      • @@ -285,7 +269,7 @@

        Declaration

        -

        The client id or the redirect URI is missing inside the Info.plist file

        +

        The client id or the redirect URI is missing inside the Info.plist file.

        @@ -307,8 +291,8 @@

        Declaration

        diff --git a/docs/Enums/InstagramScope.html b/docs/Enums/InstagramScope.html index 83c1b9f..fa63c58 100644 --- a/docs/Enums/InstagramScope.html +++ b/docs/Enums/InstagramScope.html @@ -135,7 +135,7 @@

        InstagramScope

        -
        public enum InstagramScope: String
        +
        public enum InstagramScope : String
        @@ -151,9 +151,9 @@

        InstagramScope

      • - + - basic + basic
        @@ -175,16 +175,12 @@

        Declaration

      • -
      -
      -
      - -
      -
      - -
      -
      - -
      -
      - -
      -
      -
      • - + - likes + likes
        @@ -330,16 +310,12 @@

        Declaration

      • -
      -
      -
      -
      diff --git a/docs/Errors.html b/docs/Errors.html index 13bf661..59dac00 100644 --- a/docs/Errors.html +++ b/docs/Errors.html @@ -14,6 +14,7 @@ + @@ -161,7 +162,7 @@

      Errors

      Declaration

      Swift

      -
      public enum InstagramError: Error
      +
      public enum InstagramError : Error
      @@ -176,8 +177,8 @@

      Declaration

      diff --git a/docs/Models.html b/docs/Models.html index ff2d6d3..2c71c40 100644 --- a/docs/Models.html +++ b/docs/Models.html @@ -14,6 +14,7 @@ + @@ -161,7 +162,7 @@

      Models

      Declaration

      Swift

      -
      public struct InstagramUser: Decodable
      +
      public struct InstagramUser : Decodable
      @@ -193,7 +194,7 @@

      Declaration

      Declaration

      Swift

      -
      public struct InstagramRelationship: Decodable
      +
      public struct InstagramRelationship : Decodable
      @@ -225,7 +226,7 @@

      Declaration

      Declaration

      Swift

      -
      public struct InstagramMedia: Decodable
      +
      public struct InstagramMedia : Decodable
      @@ -257,7 +258,7 @@

      Declaration

      Declaration

      Swift

      -
      public struct InstagramComment: Decodable
      +
      public struct InstagramComment : Decodable
      @@ -289,7 +290,7 @@

      Declaration

      Declaration

      Swift

      -
      public struct InstagramTag: Decodable
      +
      public struct InstagramTag : Decodable
      @@ -321,7 +322,7 @@

      Declaration

      Declaration

      Swift

      -
      public struct InstagramLocation<T: Decodable>: Decodable
      +
      public struct InstagramLocation<T> : Decodable where T : Decodable
      @@ -336,8 +337,8 @@

      Declaration

      diff --git a/docs/Other Structs.html b/docs/Other Structs.html index dc53f24..a841b4c 100644 --- a/docs/Other Structs.html +++ b/docs/Other Structs.html @@ -14,6 +14,7 @@ + @@ -154,14 +155,14 @@

      Other Structures

      -

      Dummy struct used for empty Instagram API data responses

      +

      Dummy struct used for empty Instagram API data responses.

      Declaration

      Swift

      -
      public struct InstagramEmptyResponse: Decodable
      +
      public struct InstagramEmptyResponse : Decodable
      @@ -176,8 +177,8 @@

      Declaration

      diff --git a/docs/Structs/InstagramComment.html b/docs/Structs/InstagramComment.html index 3b300e1..918b7e9 100644 --- a/docs/Structs/InstagramComment.html +++ b/docs/Structs/InstagramComment.html @@ -135,7 +135,7 @@

      InstagramComment

      -
      public struct InstagramComment: Decodable
      +
      public struct InstagramComment : Decodable
      @@ -277,9 +277,9 @@

      Initializers

    • @@ -308,8 +308,8 @@

      Declaration

      diff --git a/docs/Structs/InstagramLocation.html b/docs/Structs/InstagramLocation.html index 804550d..9e52f34 100644 --- a/docs/Structs/InstagramLocation.html +++ b/docs/Structs/InstagramLocation.html @@ -135,7 +135,7 @@

      InstagramLocation

      -
      public struct InstagramLocation<T: Decodable>: Decodable
      +
      public struct InstagramLocation<T> : Decodable where T : Decodable
      @@ -239,9 +239,9 @@

      Declaration

    • @@ -277,9 +277,9 @@

      Initializers

    • @@ -308,8 +308,8 @@

      Declaration

      diff --git a/docs/Structs/InstagramMedia.html b/docs/Structs/InstagramMedia.html index aa046eb..c2c1ce4 100644 --- a/docs/Structs/InstagramMedia.html +++ b/docs/Structs/InstagramMedia.html @@ -135,7 +135,7 @@

      InstagramMedia

      -
      public struct InstagramMedia: Decodable
      +
      public struct InstagramMedia : Decodable
      @@ -646,7 +646,7 @@

      Types

      Declaration

      Swift

      -
      public struct Count: Decodable
      +
      public struct Count : Decodable
      @@ -674,7 +674,7 @@

      Declaration

      Declaration

      Swift

      -
      public struct Resolution: Decodable
      +
      public struct Resolution : Decodable
      @@ -702,7 +702,7 @@

      Declaration

      Declaration

      Swift

      -
      public struct Images: Decodable
      +
      public struct Images : Decodable
      @@ -730,7 +730,7 @@

      Declaration

      Declaration

      Swift

      -
      public struct Videos: Decodable
      +
      public struct Videos : Decodable
      @@ -758,7 +758,7 @@

      Declaration

      Declaration

      Swift

      -
      public struct UserInPhoto: Decodable
      +
      public struct UserInPhoto : Decodable
      @@ -786,7 +786,7 @@

      Declaration

      Declaration

      Swift

      -
      public struct CarouselMedia: Decodable
      +
      public struct CarouselMedia : Decodable
      @@ -807,9 +807,9 @@

      Initializers

    • @@ -838,8 +838,8 @@

      Declaration

      diff --git a/docs/Structs/InstagramMedia/CarouselMedia.html b/docs/Structs/InstagramMedia/CarouselMedia.html index 9063b92..4bd8603 100644 --- a/docs/Structs/InstagramMedia/CarouselMedia.html +++ b/docs/Structs/InstagramMedia/CarouselMedia.html @@ -135,7 +135,7 @@

      CarouselMedia

      -
      public struct CarouselMedia: Decodable
      +
      public struct CarouselMedia : Decodable
      @@ -264,8 +264,8 @@

      Declaration

      diff --git a/docs/Structs/InstagramMedia/Count.html b/docs/Structs/InstagramMedia/Count.html index fa116f2..a02939b 100644 --- a/docs/Structs/InstagramMedia/Count.html +++ b/docs/Structs/InstagramMedia/Count.html @@ -135,7 +135,7 @@

      Count

      -
      public struct Count: Decodable
      +
      public struct Count : Decodable
      @@ -183,8 +183,8 @@

      Declaration

      diff --git a/docs/Structs/InstagramMedia/Images.html b/docs/Structs/InstagramMedia/Images.html index cdcf2eb..f74743a 100644 --- a/docs/Structs/InstagramMedia/Images.html +++ b/docs/Structs/InstagramMedia/Images.html @@ -135,7 +135,7 @@

      Images

      -
      public struct Images: Decodable
      +
      public struct Images : Decodable
      @@ -237,8 +237,8 @@

      Declaration

      diff --git a/docs/Structs/InstagramMedia/Resolution.html b/docs/Structs/InstagramMedia/Resolution.html index 5e10142..cd0e695 100644 --- a/docs/Structs/InstagramMedia/Resolution.html +++ b/docs/Structs/InstagramMedia/Resolution.html @@ -135,7 +135,7 @@

      Resolution

      -
      public struct Resolution: Decodable
      +
      public struct Resolution : Decodable
      @@ -237,8 +237,8 @@

      Declaration

      diff --git a/docs/Structs/InstagramMedia/UserInPhoto.html b/docs/Structs/InstagramMedia/UserInPhoto.html index bb94a9b..ec5ed2d 100644 --- a/docs/Structs/InstagramMedia/UserInPhoto.html +++ b/docs/Structs/InstagramMedia/UserInPhoto.html @@ -135,7 +135,7 @@

      UserInPhoto

      -
      public struct UserInPhoto: Decodable
      +
      public struct UserInPhoto : Decodable
      @@ -223,7 +223,7 @@

      Declaration

      Declaration

      Swift

      -
      public struct UserInPhotoUsername: Decodable
      +
      public struct UserInPhotoUsername : Decodable
      @@ -251,7 +251,7 @@

      Declaration

      Declaration

      Swift

      -
      public struct Position: Decodable
      +
      public struct Position : Decodable
      @@ -266,8 +266,8 @@

      Declaration

      diff --git a/docs/Structs/InstagramMedia/UserInPhoto/Position.html b/docs/Structs/InstagramMedia/UserInPhoto/Position.html index 3e82dc2..cd14f53 100644 --- a/docs/Structs/InstagramMedia/UserInPhoto/Position.html +++ b/docs/Structs/InstagramMedia/UserInPhoto/Position.html @@ -135,7 +135,7 @@

      Position

      -
      public struct Position: Decodable
      +
      public struct Position : Decodable
      @@ -210,8 +210,8 @@

      Declaration

      diff --git a/docs/Structs/InstagramMedia/UserInPhoto/UserInPhotoUsername.html b/docs/Structs/InstagramMedia/UserInPhoto/UserInPhotoUsername.html new file mode 100644 index 0000000..7622981 --- /dev/null +++ b/docs/Structs/InstagramMedia/UserInPhoto/UserInPhotoUsername.html @@ -0,0 +1,191 @@ + + + + UserInPhotoUsername Structure Reference + + + + + + + + + + + + + + + + +
      +

      + + SwiftInstagram Docs + + (100% documented) +

      + +

      +
      + + +

      + +

      + + + View on GitHub + +

      + +
      + + + +
      + +
      + +
      +
      +

      UserInPhotoUsername

      +
      +
      +
      public struct UserInPhotoUsername : Decodable
      + +
      +
      +

      A struct containing the username of the tagged user.

      + +
      +
      + +
      +
      +
      +
        +
      • +
        + + + + username + +
        +
        +
        +
        +
        +
        +

        The value of the x-axis.

        + +
        +
        +

        Declaration

        +
        +

        Swift

        +
        public let username: String
        + +
        +
        +
        +
        +
      • +
      +
      +
      +
      + +
      +
      + + + + diff --git a/docs/Structs/InstagramMedia/Videos.html b/docs/Structs/InstagramMedia/Videos.html index 714307b..c2c58e7 100644 --- a/docs/Structs/InstagramMedia/Videos.html +++ b/docs/Structs/InstagramMedia/Videos.html @@ -135,7 +135,7 @@

      Videos

      -
      public struct Videos: Decodable
      +
      public struct Videos : Decodable
      @@ -237,8 +237,8 @@

      Declaration

      diff --git a/docs/Structs/InstagramRelationship.html b/docs/Structs/InstagramRelationship.html index ee4e5c1..2e32ccc 100644 --- a/docs/Structs/InstagramRelationship.html +++ b/docs/Structs/InstagramRelationship.html @@ -135,7 +135,7 @@

      InstagramRelationship

      -
      public struct InstagramRelationship: Decodable
      +
      public struct InstagramRelationship : Decodable
      @@ -217,8 +217,8 @@

      Declaration

      diff --git a/docs/Structs/InstagramTag.html b/docs/Structs/InstagramTag.html index f52d628..76c7684 100644 --- a/docs/Structs/InstagramTag.html +++ b/docs/Structs/InstagramTag.html @@ -135,7 +135,7 @@

      InstagramTag

      -
      public struct InstagramTag: Decodable
      +
      public struct InstagramTag : Decodable
      @@ -217,8 +217,8 @@

      Declaration

      diff --git a/docs/Structs/InstagramUser.html b/docs/Structs/InstagramUser.html index 909a135..62eaaa0 100644 --- a/docs/Structs/InstagramUser.html +++ b/docs/Structs/InstagramUser.html @@ -135,7 +135,7 @@

      InstagramUser

      -
      public struct InstagramUser: Decodable
      +
      public struct InstagramUser : Decodable
      @@ -403,7 +403,7 @@

      Types

      Declaration

      Swift

      -
      public struct Counts: Decodable
      +
      public struct Counts : Decodable
      @@ -418,8 +418,8 @@

      Declaration

      diff --git a/docs/Structs/InstagramUser/Counts.html b/docs/Structs/InstagramUser/Counts.html index fc9f3a9..9d35ecb 100644 --- a/docs/Structs/InstagramUser/Counts.html +++ b/docs/Structs/InstagramUser/Counts.html @@ -135,7 +135,7 @@

      Counts

      -
      public struct Counts: Decodable
      +
      public struct Counts : Decodable
      @@ -237,8 +237,8 @@

      Declaration

      diff --git a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/API.html b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/API.html index aa0182a..401d6e2 100644 --- a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/API.html +++ b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/API.html @@ -14,6 +14,7 @@ + @@ -176,8 +177,8 @@

      Declaration

      diff --git a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Authentication.html b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Authentication.html index 75f8259..f1ab55e 100644 --- a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Authentication.html +++ b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Authentication.html @@ -14,6 +14,7 @@ + @@ -161,7 +162,7 @@

      Authentication

      Declaration

      Swift

      -
      public enum InstagramScope: String
      +
      public enum InstagramScope : String
      @@ -176,8 +177,8 @@

      Declaration

      diff --git a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Classes/Instagram.html b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Classes/Instagram.html index cd84e26..f6c5ee8 100644 --- a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Classes/Instagram.html +++ b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Classes/Instagram.html @@ -168,7 +168,7 @@

      Types

      -

      Empty success handler

      +

      Empty success handler.

      @@ -195,7 +195,7 @@

      Declaration

      -

      Success handler

      +

      Success handler.

      @@ -222,7 +222,7 @@

      Declaration

      -

      Failure handler

      +

      Failure handler.

      @@ -267,7 +267,7 @@

      Initializers

      Declaration

      Swift

      -
      public static let shared = Instagram()
      +
      public static let shared: Instagram
      @@ -288,9 +288,9 @@

      Authentication

    • @@ -392,7 +392,8 @@

      Parameters

      Declaration

      Swift

      -
      public func logout() -> Bool
      +
      @discardableResult
      +public func logout() -> Bool
      @@ -423,7 +424,7 @@

      Return Value

      Declaration

      Swift

      -
      public var isAuthenticated: Bool
      +
      public var isAuthenticated: Bool { get }
    • @@ -444,9 +445,9 @@

      Access Token

    • @@ -509,9 +510,9 @@

      Comment Endpoints

    • @@ -572,9 +573,9 @@

      Parameters

    • @@ -659,9 +660,9 @@

      Parameters

    • @@ -735,19 +736,19 @@

      Parameters

    • @@ -820,9 +821,9 @@

      Parameters

    • @@ -830,10 +831,10 @@

      Parameters

      -

      Get a list of recently tagged media.

      +

      Set a like on this media by the currently authenticated user.

      Important

      -

      It requires public_content scope.

      +

      It requires likes scope. Also, public_content scope is required for media that does not belong to your own user.

      @@ -842,12 +843,7 @@

      Parameters

      Declaration

      Swift

      -
      public func recentMedia(withTag tagName: String,
      -                        maxTagId: String? = nil,
      -                        minTagId: String? = nil,
      -                        count: Int? = nil,
      -                        success: SuccessHandler<[InstagramMedia]>?,
      -                        failure: FailureHandler?)
      +
      public func like(media mediaId: String, success: EmptySuccessHandler?, failure: FailureHandler?)
      @@ -858,60 +854,12 @@

      Parameters

    • - - - - - - - - - - - - - - - - @@ -923,7 +871,7 @@

      Parameters

      @@ -936,9 +884,9 @@

      Parameters

    • @@ -946,10 +894,10 @@

      Parameters

      -

      Search for tags by name.

      +

      Remove a like on this media by the currently authenticated user.

      Important

      -

      It requires public_content scope.

      +

      It requires likes scope. Also, public_content scope is required for media that does not belong to your own user.

      @@ -958,7 +906,7 @@

      Parameters

      Declaration

      Swift

      -
      public func search(tag query: String, success: SuccessHandler<[InstagramTag]>?, failure: FailureHandler?)
      +
      public func unlike(media mediaId: String, success: EmptySuccessHandler?, failure: FailureHandler?)
      @@ -966,30 +914,6 @@

      Declaration

      Parameters

    • + + userId + + +
      +

      The ID of the user to reference.

      +
      +
      + + success + + +
      +

      The callback called after a correct unfollow.

      -

      The callback called after an incorrect retrieval.

      +

      The callback called after an incorrect unfollow.

      -

      The callback called after a correct retrieval.

      +

      The callback called after a correct approve.

      -

      The callback called after an incorrect retrieval.

      +

      The callback called after an incorrect approve.

      -

      The callback called after a correct follow.

      +

      The callback called after a correct ignore.

      -

      The callback called after an incorrect follow.

      +

      The callback called after an incorrect ignore.

      - userId + tagName
      -

      The ID of the user to reference.

      +

      The name of the tag to reference.

      -

      The callback called after a correct unfollow.

      +

      The callback called after a correct retrieval.

      -

      The callback called after an incorrect unfollow.

      +

      The callback called after an incorrect retrieval.

      - userId + tagName
      -

      The ID of the user to reference.

      +

      The name of the tag to reference.

      +
      +
      + + maxTagId + + +
      +

      Return media after this maxTagId.

      +
      +
      + + minTagId + + +
      +

      Return media before this minTagId.

      +
      +
      + + count + + +
      +

      Count of tagged media to return.

      -

      The callback called after a correct approve.

      +

      The callback called after a correct retrieval.

      -

      The callback called after an incorrect approve.

      +

      The callback called after an incorrect retrieval.

      - userId + query
      -

      The ID of the user to reference.

      +

      A valid tag name without a leading #. (eg. snowy, nofilter)

      -

      The callback called after a correct ignore.

      +

      The callback called after a correct retrieval.

      -

      The callback called after an incorrect ignore.

      +

      The callback called after an incorrect retrieval.

      - locationId + userId
      -

      The ID of the location to reference.

      +

      The ID of the user whose information to retrieve, or self to reference the currently authenticated user.

      - locationId + userId
      -

      The ID of the location to reference.

      +

      The ID of the user whose recent media to retrieve, or self to reference the currently authenticated user.

      -

      Return media after this maxId.

      +

      Return media earlier than this maxId.

      -

      Return media before this mindId.

      +

      Return media later than this minId.

      +
      +
      + + count + + +
      +

      Count of media to return.

      - latitude - - -
      -

      Latitude of the center search coordinate. If used, longitude is required.

      -
      -
      - - longitude - - -
      -

      Longitude of the center search coordinate. If used, latitude is required.

      -
      -
      - - distance + maxLikeId
      -

      Default is 500m, max distance is 750.

      +

      Return media liked before this id.

      - facebookPlacesId + count
      -

      Returns a location mapped off of a Facebook places id. If used, coordinates is not required.

      +

      Count of media to return.

      - coordinates - - -
      -

      Latitude and longitude of the center search coordinates.

      -
      -
      - - distance + query
      -

      Default is 500m, max distance is 750.

      +

      A query string.

      - facebookPlacesId + count
      -

      Returns a location mapped off of a Facebook places id. If used, coordinates is not required.

      +

      Number of users to return.

      - tagName + mediaId
      -

      The name of the tag to reference.

      +

      The ID of the media object to reference.

      - tagName - - -
      -

      The name of the tag to reference.

      -
      -
      - - maxTagId - - -
      -

      Return media after this maxTagId.

      -
      -
      - - minTagId - - -
      -

      Return media before this minTagId.

      -
      -
      - - count - - -
      -

      Count of tagged media to return.

      -
      -
      - - success + mediaId
      -

      The callback called after a correct retrieval.

      +

      The ID of the media object to reference.

      -

      The callback called after an incorrect retrieval.

      +

      The callback called after an incorrect like.

      - - - - - - - - @@ -1012,19 +936,19 @@

      Parameters

      @@ -1097,9 +1021,9 @@

      Parameters

    • @@ -1107,10 +1031,10 @@

      Parameters

      -

      Get the most recent media published by a user.

      +

      Get a list of recent media objects from a given location.

      Important

      -

      It requires public_content scope when getting recent media published by a user other than yours.

      +

      It requires public_content scope.

      @@ -1119,10 +1043,9 @@

      Parameters

      Declaration

      Swift

      -
      public func recentMedia(fromUser userId: String,
      +                          
      public func recentMedia(forLocation locationId: String,
                               maxId: String? = nil,
                               minId: String? = nil,
      -                        count: Int? = nil,
                               success: SuccessHandler<[InstagramMedia]>?,
                               failure: FailureHandler?)
      @@ -1135,12 +1058,12 @@

      Parameters

    • @@ -1152,7 +1075,7 @@

      Parameters

      @@ -1164,19 +1087,7 @@

      Parameters

      - - - - @@ -1213,9 +1124,9 @@

      Parameters

    • @@ -1223,7 +1134,7 @@

      Parameters

      -

      Get the list of recent media liked by the currently authenticated user.

      +

      Search for a location by geographic coordinate.

      Important

      It requires public_content scope.

      @@ -1235,7 +1146,12 @@

      Parameters

      Declaration

      Swift

      -
      public func userLikedMedia(maxLikeId: String? = nil, count: Int? = nil, success: SuccessHandler<[InstagramMedia]>?, failure: FailureHandler?)
      +
      public func searchLocation(latitude: Double? = nil,
      +                           longitude: Double? = nil,
      +                           distance: Int? = nil,
      +                           facebookPlacesId: String? = nil,
      +                           success: SuccessHandler<[InstagramLocation<String>]>?,
      +                           failure: FailureHandler?)
      @@ -1246,111 +1162,48 @@

      Parameters

    • - - - - - - - -
      - - query - - -
      -

      A valid tag name without a leading #. (eg. snowy, nofilter)

      -
      -
      - - success - - -
      -

      The callback called after a correct retrieval.

      -
      -
      @@ -998,7 +922,7 @@

      Parameters

      -

      The callback called after an incorrect retrieval.

      +

      The callback called after an incorrect deletion.

      - userId + locationId
      -

      The ID of the user whose information to retrieve, or self to reference the currently authenticated user.

      +

      The ID of the location to reference.

      - userId + locationId
      -

      The ID of the user whose recent media to retrieve, or self to reference the currently authenticated user.

      +

      The ID of the location to reference.

      -

      Return media earlier than this maxId.

      +

      Return media after this maxId.

      -

      Return media later than this minId.

      -
      -
      - - count - - -
      -

      Count of media to return.

      +

      Return media before this mindId.

      - maxLikeId - - -
      -

      Return media liked before this id.

      -
      -
      - - count + latitude
      -

      Count of media to return.

      +

      Latitude of the center search coordinate. If used, longitude is required.

      - success + longitude
      -

      The callback called after a correct retrieval.

      +

      Longitude of the center search coordinate. If used, latitude is required.

      - failure - - -
      -

      The callback called after an incorrect retrieval.

      -
      -
      -
      -
      -
      -
    • -
    • - -
      -
      -
      -
      -
      -

      Get a list of users matching the query.

      -
      -

      Important

      -

      It requires public_content scope.

      - -
      - -
      -
      -

      Declaration

      -
      -

      Swift

      -
      public func search(user query: String, count: Int? = nil, success: SuccessHandler<[InstagramUser]>?, failure: FailureHandler?)
      - -
      -
      -
      -

      Parameters

      - - - - @@ -1384,23 +1237,12 @@

      Parameters

      - - -
      - -
      - - - - - -
      - - query + distance
      -

      A query string.

      +

      Default is 500m, max distance is 750.

      - count + facebookPlacesId
      -

      Number of users to return.

      +

      Returns a location mapped off of a Facebook places id. If used, coordinates is not required.

      - mediaId - - -
      -

      The ID of the media object to reference.

      -
      -
      - - success + coordinates
      -

      The callback called after a correct retrieval.

      +

      Latitude and longitude of the center search coordinates.

      - failure + distance
      -

      The callback called after an incorrect retrieval.

      +

      Default is 500m, max distance is 750.

      -
      -
      -
      -
    • -
    • - -
      -
      -
      -
      -
      -

      Set a like on this media by the currently authenticated user.

      -
      -

      Important

      -

      It requires likes scope. Also, public_content scope is required for media that does not belong to your own user.

      - -
      - -
      -
      -

      Declaration

      -
      -

      Swift

      -
      public func like(media mediaId: String, success: EmptySuccessHandler?, failure: FailureHandler?)
      - -
      -
      -
      -

      Parameters

      - - - -
      - mediaId + facebookPlacesId
      -

      The ID of the media object to reference.

      +

      Returns a location mapped off of a Facebook places id. If used, coordinates is not required.

      - failure + success
      -

      The callback called after an incorrect like.

      +

      The callback called after a correct retrieval.

      -
      -
      -
      -
    • -
    • - -
      -
      -
      -
      -
      -

      Remove a like on this media by the currently authenticated user.

      -
      -

      Important

      -

      It requires likes scope. Also, public_content scope is required for media that does not belong to your own user.

      - -
      - -
      -
      -

      Declaration

      -
      -

      Swift

      -
      public func unlike(media mediaId: String, success: EmptySuccessHandler?, failure: FailureHandler?)
      - -
      -
      -
      -

      Parameters

      - - @@ -1598,9 +1354,9 @@

      Media Endpoints

    • @@ -1673,9 +1429,9 @@

      Parameters

    • @@ -1754,9 +1510,9 @@

      Parameters

    • @@ -1857,9 +1613,9 @@

      Parameters

    • @@ -1958,9 +1714,9 @@

      Relationship Endpoints

    • @@ -2021,9 +1777,9 @@

      Parameters

    • @@ -2084,9 +1840,9 @@

      Parameters

    • @@ -2122,7 +1878,232 @@

      Parameters

    • + + + + + + +
      @@ -1574,7 +1330,7 @@

      Parameters

      -

      The callback called after an incorrect deletion.

      +

      The callback called after an incorrect retrieval.

      -

      The callback called after a correct retrieval.

      +

      The callback called after a correct retrieval.

      +
      +
      + + failure + + +
      +

      The callback called after an incorrect retrieval.

      +
      +
      +
      +
      +
      +
    • +
    • + +
      +
      +
      +
      +
      +

      Get information about a relationship to another user.

      +
      +

      Important

      +

      It requires follower_list scope.

      + +
      + +
      +
      +

      Declaration

      +
      +

      Swift

      +
      public func userRelationship(withUser userId: String, success: SuccessHandler<InstagramRelationship>?, failure: FailureHandler?)
      + +
      +
      +
      +

      Parameters

      + + + + + + + + + + + + + + + +
      + + userId + + +
      +

      The ID of the user to reference.

      +
      +
      + + success + + +
      +

      The callback called after a correct retrieval.

      +
      +
      + + failure + + +
      +

      The callback called after an incorrect retrieval.

      +
      +
      +
      +
      +
      +
    • +
    • + +
      +
      +
      +
      +
      +

      Follows the target user.

      +
      +

      Important

      +

      It requires relationships scope.

      + +
      + +
      +
      +

      Declaration

      +
      +

      Swift

      +
      public func follow(user userId: String, success: SuccessHandler<InstagramRelationship>?, failure: FailureHandler?)
      + +
      +
      +
      +

      Parameters

      + + + + + + + + + + + + + + + +
      + + userId + + +
      +

      The ID of the user to reference.

      +
      +
      + + success + + +
      +

      The callback called after a correct follow.

      +
      +
      + + failure + + +
      +

      The callback called after an incorrect follow.

      +
      +
      +
      +
      +
      +
    • +
    • + +
      +
      +
      +
      +
      +

      Unfollows the target user.

      +
      +

      Important

      +

      It requires relationships scope.

      + +
      + +
      +
      +

      Declaration

      +
      +

      Swift

      +
      public func unfollow(user userId: String, success: SuccessHandler<InstagramRelationship>?, failure: FailureHandler?)
      + +
      +
      +
      +

      Parameters

      + + + + + + + + + @@ -2134,7 +2115,7 @@

      Parameters

      @@ -2147,9 +2128,9 @@

      Parameters

    • @@ -2157,10 +2138,10 @@

      Parameters

      -

      Get information about a relationship to another user.

      +

      Approve the target user’s request.

      Important

      -

      It requires follower_list scope.

      +

      It requires relationships scope.

      @@ -2169,7 +2150,7 @@

      Parameters

      Declaration

      Swift

      -
      public func userRelationship(withUser userId: String, success: SuccessHandler<InstagramRelationship>?, failure: FailureHandler?)
      +
      public func approveRequest(fromUser userId: String, success: SuccessHandler<InstagramRelationship>?, failure: FailureHandler?)
      @@ -2197,7 +2178,7 @@

      Parameters

    • @@ -2209,7 +2190,7 @@

      Parameters

      @@ -2222,9 +2203,9 @@

      Parameters

    • @@ -2232,7 +2213,7 @@

      Parameters

      -

      Follows the target user.

      +

      Ignore the target user’s request.

      Important

      It requires relationships scope.

      @@ -2244,7 +2225,7 @@

      Parameters

      Declaration

      Swift

      -
      public func follow(user userId: String, success: SuccessHandler<InstagramRelationship>?, failure: FailureHandler?)
      +
      public func ignoreRequest(fromUser userId: String, success: SuccessHandler<InstagramRelationship>?, failure: FailureHandler?)
      @@ -2272,7 +2253,7 @@

      Parameters

    • @@ -2284,7 +2265,7 @@

      Parameters

      @@ -2294,12 +2275,23 @@

      Parameters

      + + +
      + +
      @@ -2347,7 +2339,7 @@

      Parameters

      @@ -2359,7 +2351,7 @@

      Parameters

      @@ -2372,9 +2364,9 @@

      Parameters

    • @@ -2382,10 +2374,10 @@

      Parameters

      -

      Approve the target user’s request.

      +

      Get a list of recently tagged media.

      Important

      -

      It requires relationships scope.

      +

      It requires public_content scope.

      @@ -2394,7 +2386,12 @@

      Parameters

      Declaration

      Swift

      -
      public func approveRequest(fromUser userId: String, success: SuccessHandler<InstagramRelationship>?, failure: FailureHandler?)
      +
      public func recentMedia(withTag tagName: String,
      +                        maxTagId: String? = nil,
      +                        minTagId: String? = nil,
      +                        count: Int? = nil,
      +                        success: SuccessHandler<[InstagramMedia]>?,
      +                        failure: FailureHandler?)
      @@ -2405,12 +2402,48 @@

      Parameters

    • + + + + + + + + + + + + @@ -2422,7 +2455,7 @@

      Parameters

      @@ -2434,7 +2467,7 @@

      Parameters

      @@ -2447,9 +2480,9 @@

      Parameters

    • @@ -2457,10 +2490,10 @@

      Parameters

      -

      Ignore the target user’s request.

      +

      Search for tags by name.

      Important

      -

      It requires relationships scope.

      +

      It requires public_content scope.

      @@ -2469,7 +2502,7 @@

      Parameters

      Declaration

      Swift

      -
      public func ignoreRequest(fromUser userId: String, success: SuccessHandler<InstagramRelationship>?, failure: FailureHandler?)
      +
      public func search(tag query: String, success: SuccessHandler<[InstagramTag]>?, failure: FailureHandler?)
      @@ -2480,12 +2513,12 @@

      Parameters

    • @@ -2497,7 +2530,7 @@

      Parameters

      @@ -2509,7 +2542,7 @@

      Parameters

      @@ -2523,19 +2556,19 @@

      Parameters

      @@ -2608,9 +2641,9 @@

      Parameters

    • @@ -2618,10 +2651,10 @@

      Parameters

      -

      Get a list of recent media objects from a given location.

      +

      Get the most recent media published by a user.

      Important

      -

      It requires public_content scope.

      +

      It requires public_content scope when getting recent media published by a user other than yours.

      @@ -2630,9 +2663,10 @@

      Parameters

      Declaration

      Swift

      -
      public func recentMedia(forLocation locationId: String,
      +                          
      public func recentMedia(fromUser userId: String,
                               maxId: String? = nil,
                               minId: String? = nil,
      +                        count: Int? = nil,
                               success: SuccessHandler<[InstagramMedia]>?,
                               failure: FailureHandler?)
      @@ -2645,12 +2679,12 @@

      Parameters

    • @@ -2662,7 +2696,7 @@

      Parameters

      @@ -2674,7 +2708,19 @@

      Parameters

      + + + + @@ -2711,9 +2757,9 @@

      Parameters

    • @@ -2721,7 +2767,7 @@

      Parameters

      -

      Search for a location by geographic coordinate.

      +

      Get the list of recent media liked by the currently authenticated user.

      Important

      It requires public_content scope.

      @@ -2733,12 +2779,7 @@

      Parameters

      Declaration

      Swift

      -
      public func searchLocation(latitude: Double? = nil,
      -                           longitude: Double? = nil,
      -                           distance: Int? = nil,
      -                           facebookPlacesId: String? = nil,
      -                           success: SuccessHandler<[InstagramLocation<String>]>?,
      -                           failure: FailureHandler?)
      +
      public func userLikedMedia(maxLikeId: String? = nil, count: Int? = nil, success: SuccessHandler<[InstagramMedia]>?, failure: FailureHandler?)
      @@ -2749,48 +2790,24 @@

      Parameters

    • - - - - - - - - @@ -2827,9 +2844,9 @@

      Parameters

    • @@ -2837,7 +2854,7 @@

      Parameters

      -

      Search for a location by geographic coordinate.

      +

      Get a list of users matching the query.

      Important

      It requires public_content scope.

      @@ -2849,11 +2866,7 @@

      Parameters

      Declaration

      Swift

      -
      public func searchLocation(coordinates: CLLocationCoordinate2D? = nil,
      -                           distance: Int? = nil,
      -                           facebookPlacesId: String? = nil,
      -                           success: SuccessHandler<[InstagramLocation<String>]>?,
      -                           failure: FailureHandler?)
      +
      public func search(user query: String, count: Int? = nil, success: SuccessHandler<[InstagramUser]>?, failure: FailureHandler?)
      @@ -2864,36 +2877,24 @@

      Parameters

    • - - - - @@ -2935,8 +2936,8 @@

      Parameters

      diff --git a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Enums/InstagramError.html b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Enums/InstagramError.html index f98fbd0..8e5ad4b 100644 --- a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Enums/InstagramError.html +++ b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Enums/InstagramError.html @@ -135,7 +135,7 @@

      InstagramError

      -
      public enum InstagramError: Error
      +
      public enum InstagramError : Error
      @@ -151,9 +151,9 @@

      InstagramError

    • @@ -161,7 +161,7 @@

      InstagramError

      -

      Error 400 on login

      +

      Error 400 on login.

      @@ -175,16 +175,12 @@

      Declaration

    • - - -
      -
      • @@ -192,7 +188,7 @@

        Declaration

        -

        Error decoding JSON

        +

        Error decoding JSON.

        @@ -206,16 +202,12 @@

        Declaration

      • -
      -
      -
      - -
      -
      - -
      -
      -
      • @@ -285,7 +269,7 @@

        Declaration

        -

        The client id or the redirect URI is missing inside the Info.plist file

        +

        The client id or the redirect URI is missing inside the Info.plist file.

        @@ -307,8 +291,8 @@

        Declaration

        diff --git a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Enums/InstagramScope.html b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Enums/InstagramScope.html index 83c1b9f..fa63c58 100644 --- a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Enums/InstagramScope.html +++ b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Enums/InstagramScope.html @@ -135,7 +135,7 @@

        InstagramScope

        -
        public enum InstagramScope: String
        +
        public enum InstagramScope : String
        @@ -151,9 +151,9 @@

        InstagramScope

      • - + - basic + basic
        @@ -175,16 +175,12 @@

        Declaration

      • -
      -
      -
      - -
      -
      - -
      -
      - -
      -
      - -
      -
      -
      • - + - likes + likes
        @@ -330,16 +310,12 @@

        Declaration

      • -
      -
      -
      -
      diff --git a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Errors.html b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Errors.html index 13bf661..59dac00 100644 --- a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Errors.html +++ b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Errors.html @@ -14,6 +14,7 @@ + @@ -161,7 +162,7 @@

      Errors

      Declaration

      Swift

      -
      public enum InstagramError: Error
      +
      public enum InstagramError : Error
      @@ -176,8 +177,8 @@

      Declaration

      diff --git a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Models.html b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Models.html index ff2d6d3..2c71c40 100644 --- a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Models.html +++ b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Models.html @@ -14,6 +14,7 @@ + @@ -161,7 +162,7 @@

      Models

      Declaration

      Swift

      -
      public struct InstagramUser: Decodable
      +
      public struct InstagramUser : Decodable
      @@ -193,7 +194,7 @@

      Declaration

      Declaration

      Swift

      -
      public struct InstagramRelationship: Decodable
      +
      public struct InstagramRelationship : Decodable
      @@ -225,7 +226,7 @@

      Declaration

      Declaration

      Swift

      -
      public struct InstagramMedia: Decodable
      +
      public struct InstagramMedia : Decodable
      @@ -257,7 +258,7 @@

      Declaration

      Declaration

      Swift

      -
      public struct InstagramComment: Decodable
      +
      public struct InstagramComment : Decodable
      @@ -289,7 +290,7 @@

      Declaration

      Declaration

      Swift

      -
      public struct InstagramTag: Decodable
      +
      public struct InstagramTag : Decodable
      @@ -321,7 +322,7 @@

      Declaration

      Declaration

      Swift

      -
      public struct InstagramLocation<T: Decodable>: Decodable
      +
      public struct InstagramLocation<T> : Decodable where T : Decodable
      @@ -336,8 +337,8 @@

      Declaration

      diff --git a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Other Structs.html b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Other Structs.html index dc53f24..a841b4c 100644 --- a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Other Structs.html +++ b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Other Structs.html @@ -14,6 +14,7 @@ + @@ -154,14 +155,14 @@

      Other Structures

      -

      Dummy struct used for empty Instagram API data responses

      +

      Dummy struct used for empty Instagram API data responses.

      Declaration

      Swift

      -
      public struct InstagramEmptyResponse: Decodable
      +
      public struct InstagramEmptyResponse : Decodable
      @@ -176,8 +177,8 @@

      Declaration

      diff --git a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramComment.html b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramComment.html index 3b300e1..918b7e9 100644 --- a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramComment.html +++ b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramComment.html @@ -135,7 +135,7 @@

      InstagramComment

      -
      public struct InstagramComment: Decodable
      +
      public struct InstagramComment : Decodable
      @@ -277,9 +277,9 @@

      Initializers

    • @@ -308,8 +308,8 @@

      Declaration

      diff --git a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramLocation.html b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramLocation.html index 804550d..9e52f34 100644 --- a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramLocation.html +++ b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramLocation.html @@ -135,7 +135,7 @@

      InstagramLocation

      -
      public struct InstagramLocation<T: Decodable>: Decodable
      +
      public struct InstagramLocation<T> : Decodable where T : Decodable
      @@ -239,9 +239,9 @@

      Declaration

    • @@ -277,9 +277,9 @@

      Initializers

    • @@ -308,8 +308,8 @@

      Declaration

      diff --git a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia.html b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia.html index aa046eb..c2c1ce4 100644 --- a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia.html +++ b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia.html @@ -135,7 +135,7 @@

      InstagramMedia

      -
      public struct InstagramMedia: Decodable
      +
      public struct InstagramMedia : Decodable
      @@ -646,7 +646,7 @@

      Types

      Declaration

      Swift

      -
      public struct Count: Decodable
      +
      public struct Count : Decodable
      @@ -674,7 +674,7 @@

      Declaration

      Declaration

      Swift

      -
      public struct Resolution: Decodable
      +
      public struct Resolution : Decodable
      @@ -702,7 +702,7 @@

      Declaration

      Declaration

      Swift

      -
      public struct Images: Decodable
      +
      public struct Images : Decodable
      @@ -730,7 +730,7 @@

      Declaration

      Declaration

      Swift

      -
      public struct Videos: Decodable
      +
      public struct Videos : Decodable
      @@ -758,7 +758,7 @@

      Declaration

      Declaration

      Swift

      -
      public struct UserInPhoto: Decodable
      +
      public struct UserInPhoto : Decodable
      @@ -786,7 +786,7 @@

      Declaration

      Declaration

      Swift

      -
      public struct CarouselMedia: Decodable
      +
      public struct CarouselMedia : Decodable
      @@ -807,9 +807,9 @@

      Initializers

    • @@ -838,8 +838,8 @@

      Declaration

      diff --git a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia/CarouselMedia.html b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia/CarouselMedia.html index 9063b92..4bd8603 100644 --- a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia/CarouselMedia.html +++ b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia/CarouselMedia.html @@ -135,7 +135,7 @@

      CarouselMedia

      -
      public struct CarouselMedia: Decodable
      +
      public struct CarouselMedia : Decodable
      @@ -264,8 +264,8 @@

      Declaration

      diff --git a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia/Count.html b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia/Count.html index fa116f2..a02939b 100644 --- a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia/Count.html +++ b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia/Count.html @@ -135,7 +135,7 @@

      Count

      -
      public struct Count: Decodable
      +
      public struct Count : Decodable
      @@ -183,8 +183,8 @@

      Declaration

      diff --git a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia/Images.html b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia/Images.html index cdcf2eb..f74743a 100644 --- a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia/Images.html +++ b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia/Images.html @@ -135,7 +135,7 @@

      Images

      -
      public struct Images: Decodable
      +
      public struct Images : Decodable
      @@ -237,8 +237,8 @@

      Declaration

      diff --git a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia/Resolution.html b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia/Resolution.html index 5e10142..cd0e695 100644 --- a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia/Resolution.html +++ b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia/Resolution.html @@ -135,7 +135,7 @@

      Resolution

      -
      public struct Resolution: Decodable
      +
      public struct Resolution : Decodable
      @@ -237,8 +237,8 @@

      Declaration

      diff --git a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia/UserInPhoto.html b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia/UserInPhoto.html index bb94a9b..ec5ed2d 100644 --- a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia/UserInPhoto.html +++ b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia/UserInPhoto.html @@ -135,7 +135,7 @@

      UserInPhoto

      -
      public struct UserInPhoto: Decodable
      +
      public struct UserInPhoto : Decodable
      @@ -223,7 +223,7 @@

      Declaration

      Declaration

      Swift

      -
      public struct UserInPhotoUsername: Decodable
      +
      public struct UserInPhotoUsername : Decodable
      @@ -251,7 +251,7 @@

      Declaration

      Declaration

      Swift

      -
      public struct Position: Decodable
      +
      public struct Position : Decodable
      @@ -266,8 +266,8 @@

      Declaration

      diff --git a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia/UserInPhoto/Position.html b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia/UserInPhoto/Position.html index 3e82dc2..cd14f53 100644 --- a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia/UserInPhoto/Position.html +++ b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia/UserInPhoto/Position.html @@ -135,7 +135,7 @@

      Position

      -
      public struct Position: Decodable
      +
      public struct Position : Decodable
      @@ -210,8 +210,8 @@

      Declaration

      diff --git a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia/UserInPhoto/UserInPhotoUsername.html b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia/UserInPhoto/UserInPhotoUsername.html new file mode 100644 index 0000000..7622981 --- /dev/null +++ b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia/UserInPhoto/UserInPhotoUsername.html @@ -0,0 +1,191 @@ + + + + UserInPhotoUsername Structure Reference + + + + + + + + + + + + + + + + +
      +

      + + SwiftInstagram Docs + + (100% documented) +

      + +

      +
      + + +

      + +

      + + + View on GitHub + +

      + +
      + + + +
      + +
      + +
      +
      +

      UserInPhotoUsername

      +
      +
      +
      public struct UserInPhotoUsername : Decodable
      + +
      +
      +

      A struct containing the username of the tagged user.

      + +
      +
      + +
      +
      +
      +
        +
      • +
        + + + + username + +
        +
        +
        +
        +
        +
        +

        The value of the x-axis.

        + +
        +
        +

        Declaration

        +
        +

        Swift

        +
        public let username: String
        + +
        +
        +
        +
        +
      • +
      +
      +
      +
      + +
      +
      + + + + diff --git a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia/Videos.html b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia/Videos.html index 714307b..c2c58e7 100644 --- a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia/Videos.html +++ b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramMedia/Videos.html @@ -135,7 +135,7 @@

      Videos

      -
      public struct Videos: Decodable
      +
      public struct Videos : Decodable
      @@ -237,8 +237,8 @@

      Declaration

      diff --git a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramRelationship.html b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramRelationship.html index ee4e5c1..2e32ccc 100644 --- a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramRelationship.html +++ b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramRelationship.html @@ -135,7 +135,7 @@

      InstagramRelationship

      -
      public struct InstagramRelationship: Decodable
      +
      public struct InstagramRelationship : Decodable
      @@ -217,8 +217,8 @@

      Declaration

      diff --git a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramTag.html b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramTag.html index f52d628..76c7684 100644 --- a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramTag.html +++ b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramTag.html @@ -135,7 +135,7 @@

      InstagramTag

      -
      public struct InstagramTag: Decodable
      +
      public struct InstagramTag : Decodable
      @@ -217,8 +217,8 @@

      Declaration

      diff --git a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramUser.html b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramUser.html index 909a135..62eaaa0 100644 --- a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramUser.html +++ b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramUser.html @@ -135,7 +135,7 @@

      InstagramUser

      -
      public struct InstagramUser: Decodable
      +
      public struct InstagramUser : Decodable
      @@ -403,7 +403,7 @@

      Types

      Declaration

      Swift

      -
      public struct Counts: Decodable
      +
      public struct Counts : Decodable
      @@ -418,8 +418,8 @@

      Declaration

      diff --git a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramUser/Counts.html b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramUser/Counts.html index fc9f3a9..9d35ecb 100644 --- a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramUser/Counts.html +++ b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/Structs/InstagramUser/Counts.html @@ -135,7 +135,7 @@

      Counts

      -
      public struct Counts: Decodable
      +
      public struct Counts : Decodable
      @@ -237,8 +237,8 @@

      Declaration

      diff --git a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/index.html b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/index.html index 18ef5d5..bd92eb3 100644 --- a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/index.html +++ b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/index.html @@ -237,8 +237,8 @@

      Author

      diff --git a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/search.json b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/search.json index 242f61e..d20341d 100644 --- a/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/search.json +++ b/docs/docsets/SwiftInstagram.docset/Contents/Resources/Documents/search.json @@ -1 +1 @@ -{"Other Structs.html#/s:14SwiftInstagram0B13EmptyResponseV":{"name":"InstagramEmptyResponse","abstract":"

      Dummy struct used for empty Instagram API data responses

      "},"Enums/InstagramError.html#/s:14SwiftInstagram0B5ErrorO10badRequestA2CmF":{"name":"badRequest","abstract":"

      Error 400 on login

      ","parent_name":"InstagramError"},"Enums/InstagramError.html#/s:14SwiftInstagram0B5ErrorO8decodingACSS7message_tcACmF":{"name":"decoding","abstract":"

      Error decoding JSON

      ","parent_name":"InstagramError"},"Enums/InstagramError.html#/s:14SwiftInstagram0B5ErrorO14invalidRequestACSS7message_tcACmF":{"name":"invalidRequest","abstract":"

      Invalid API request

      ","parent_name":"InstagramError"},"Enums/InstagramError.html#/s:14SwiftInstagram0B5ErrorO08keychainC0ACs5Int32V4code_tcACmF":{"name":"keychainError","abstract":"

      Keychain error

      ","parent_name":"InstagramError"},"Enums/InstagramError.html#/s:14SwiftInstagram0B5ErrorO28missingClientIdOrRedirectURIA2CmF":{"name":"missingClientIdOrRedirectURI","abstract":"

      The client id or the redirect URI is missing inside the Info.plist file

      ","parent_name":"InstagramError"},"Enums/InstagramError.html":{"name":"InstagramError","abstract":"

      A type representing an error value that can be thrown.

      "},"Structs/InstagramLocation.html#/s:14SwiftInstagram0B8LocationV2idxvp":{"name":"id","abstract":"

      The location identifier.

      ","parent_name":"InstagramLocation"},"Structs/InstagramLocation.html#/s:14SwiftInstagram0B8LocationV4nameSSvp":{"name":"name","abstract":"

      The location name.

      ","parent_name":"InstagramLocation"},"Structs/InstagramLocation.html#/s:14SwiftInstagram0B8LocationV13streetAddressSSSgvp":{"name":"streetAddress","abstract":"

      The location address.

      ","parent_name":"InstagramLocation"},"Structs/InstagramLocation.html#/s:14SwiftInstagram0B8LocationV11coordinatesSC22CLLocationCoordinate2DVvp":{"name":"coordinates","abstract":"

      The location coordinates (latitude and longitude).

      ","parent_name":"InstagramLocation"},"Structs/InstagramLocation.html#/s:s9DecodablePxs7Decoder_p4from_tKcfc":{"name":"init(from:)","parent_name":"InstagramLocation"},"Structs/InstagramTag.html#/s:14SwiftInstagram0B3TagV4nameSSvp":{"name":"name","abstract":"

      The tag name.

      ","parent_name":"InstagramTag"},"Structs/InstagramTag.html#/s:14SwiftInstagram0B3TagV10mediaCountSivp":{"name":"mediaCount","abstract":"

      The number of media in which the tag appears.

      ","parent_name":"InstagramTag"},"Structs/InstagramComment.html#/s:14SwiftInstagram0B7CommentV2idSSvp":{"name":"id","abstract":"

      The comment identifier.

      ","parent_name":"InstagramComment"},"Structs/InstagramComment.html#/s:14SwiftInstagram0B7CommentV4textSSvp":{"name":"text","abstract":"

      The comment text.

      ","parent_name":"InstagramComment"},"Structs/InstagramComment.html#/s:14SwiftInstagram0B7CommentV4fromAA0B4UserVvp":{"name":"from","abstract":"

      The user who created the comment.

      ","parent_name":"InstagramComment"},"Structs/InstagramComment.html#/s:14SwiftInstagram0B7CommentV11createdDate10Foundation0E0Vvp":{"name":"createdDate","abstract":"

      The date and time when the comment was created.

      ","parent_name":"InstagramComment"},"Structs/InstagramComment.html#/s:s9DecodablePxs7Decoder_p4from_tKcfc":{"name":"init(from:)","parent_name":"InstagramComment"},"Structs/InstagramMedia/CarouselMedia.html#/s:14SwiftInstagram0B5MediaV08CarouselC0V6imagesAC6ImagesVSgvp":{"name":"images","abstract":"

      The images inside the carousel.

      ","parent_name":"CarouselMedia"},"Structs/InstagramMedia/CarouselMedia.html#/s:14SwiftInstagram0B5MediaV08CarouselC0V6videosAC6VideosVSgvp":{"name":"videos","abstract":"

      The videos inside the carousel.

      ","parent_name":"CarouselMedia"},"Structs/InstagramMedia/CarouselMedia.html#/s:14SwiftInstagram0B5MediaV08CarouselC0V12usersInPhotoSayAC04UserfG0VGvp":{"name":"usersInPhoto","abstract":"

      A list of users and their position on the image.

      ","parent_name":"CarouselMedia"},"Structs/InstagramMedia/CarouselMedia.html#/s:14SwiftInstagram0B5MediaV08CarouselC0V4typeSSvp":{"name":"type","abstract":"

      The type of media. It can be image or video.

      ","parent_name":"CarouselMedia"},"Structs/InstagramMedia/UserInPhoto/Position.html#/s:14SwiftInstagram0B5MediaV11UserInPhotoV8PositionV1xSdvp":{"name":"x","abstract":"

      The value of the x-axis.

      ","parent_name":"Position"},"Structs/InstagramMedia/UserInPhoto/Position.html#/s:14SwiftInstagram0B5MediaV11UserInPhotoV8PositionV1ySdvp":{"name":"y","abstract":"

      The value of the y-axis.

      ","parent_name":"Position"},"Structs/InstagramMedia/UserInPhoto/UserInPhotoUsername.html#/s:14SwiftInstagram0B5MediaV11UserInPhotoV0deF8UsernameV8usernameSSvp":{"name":"username","abstract":"

      The value of the x-axis.

      ","parent_name":"UserInPhotoUsername"},"Structs/InstagramMedia/UserInPhoto.html#/s:14SwiftInstagram0B5MediaV11UserInPhotoV4userAE0deF8UsernameVvp":{"name":"user","abstract":"

      The user that appears in the image.

      ","parent_name":"UserInPhoto"},"Structs/InstagramMedia/UserInPhoto.html#/s:14SwiftInstagram0B5MediaV11UserInPhotoV8positionAE8PositionVvp":{"name":"position","abstract":"

      The position in points of the user in the image.

      ","parent_name":"UserInPhoto"},"Structs/InstagramMedia/UserInPhoto/UserInPhotoUsername.html":{"name":"UserInPhotoUsername","abstract":"

      A struct containing the username of the tagged user.

      ","parent_name":"UserInPhoto"},"Structs/InstagramMedia/UserInPhoto/Position.html":{"name":"Position","abstract":"

      A struct containing the value of the coordinate axes, ‘x’ and ‘y’.

      ","parent_name":"UserInPhoto"},"Structs/InstagramMedia/Videos.html#/s:14SwiftInstagram0B5MediaV6VideosV13lowResolutionAC0F0Vvp":{"name":"lowResolution","abstract":"

      A Resolution object that contains the width, height and URL of the low resolution video.

      ","parent_name":"Videos"},"Structs/InstagramMedia/Videos.html#/s:14SwiftInstagram0B5MediaV6VideosV18standardResolutionAC0F0Vvp":{"name":"standardResolution","abstract":"

      A Resolution object that contains the width, height and URL of the standard resolution video.

      ","parent_name":"Videos"},"Structs/InstagramMedia/Videos.html#/s:14SwiftInstagram0B5MediaV6VideosV12lowBandwidthAC10ResolutionVSgvp":{"name":"lowBandwidth","abstract":"

      A Resolution object that contains the width, height and URL of the low bandwidth video.

      ","parent_name":"Videos"},"Structs/InstagramMedia/Images.html#/s:14SwiftInstagram0B5MediaV6ImagesV9thumbnailAC10ResolutionVvp":{"name":"thumbnail","abstract":"

      A Resolution object that contains the width, height and URL of the thumbnail.

      ","parent_name":"Images"},"Structs/InstagramMedia/Images.html#/s:14SwiftInstagram0B5MediaV6ImagesV13lowResolutionAC0F0Vvp":{"name":"lowResolution","abstract":"

      A Resolution object that contains the width, height and URL of the low resolution image.

      ","parent_name":"Images"},"Structs/InstagramMedia/Images.html#/s:14SwiftInstagram0B5MediaV6ImagesV18standardResolutionAC0F0Vvp":{"name":"standardResolution","abstract":"

      A Resolution object that contains the width, height and URL of the standard resolution image.

      ","parent_name":"Images"},"Structs/InstagramMedia/Resolution.html#/s:14SwiftInstagram0B5MediaV10ResolutionV5widthSivp":{"name":"width","abstract":"

      The width of the media.

      ","parent_name":"Resolution"},"Structs/InstagramMedia/Resolution.html#/s:14SwiftInstagram0B5MediaV10ResolutionV6heightSivp":{"name":"height","abstract":"

      The height of the media.

      ","parent_name":"Resolution"},"Structs/InstagramMedia/Resolution.html#/s:14SwiftInstagram0B5MediaV10ResolutionV3url10Foundation3URLVvp":{"name":"url","abstract":"

      The URL to download the media.

      ","parent_name":"Resolution"},"Structs/InstagramMedia/Count.html#/s:14SwiftInstagram0B5MediaV5CountV5countSivp":{"name":"count","abstract":"

      The number of elements.

      ","parent_name":"Count"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV2idSSvp":{"name":"id","abstract":"

      The media identifier.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV4userAA0B4UserVvp":{"name":"user","abstract":"

      The owner of the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV11createdDate10Foundation0E0Vvp":{"name":"createdDate","abstract":"

      The date and time when the media was created.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV4typeSSvp":{"name":"type","abstract":"

      The type of media. It can be image or video.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV6imagesAC6ImagesVvp":{"name":"images","abstract":"

      The thumbnail, low and standard resolution images of the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV6videosAC6VideosVSgvp":{"name":"videos","abstract":"

      The low and standard resolution videos of the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV7captionAA0B7CommentVSgvp":{"name":"caption","abstract":"

      The headline of the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV8commentsAC5CountVvp":{"name":"comments","abstract":"

      A Count object that contains the number of comments on the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV5likesAC5CountVvp":{"name":"likes","abstract":"

      A Count object that contains the number of likes on the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV4tagsSaySSGvp":{"name":"tags","abstract":"

      A list of tags used in the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV12userHasLikedSbvp":{"name":"userHasLiked","abstract":"

      A Boolean value that indicates whether the current logged-in user has liked the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV6filterSSvp":{"name":"filter","abstract":"

      The image filter used by the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV4link10Foundation3URLVvp":{"name":"link","abstract":"

      The URL link of the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV8locationAA0B8LocationVySiGSgvp":{"name":"location","abstract":"

      The location of the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV12usersInPhotoSayAC04UsereF0VGSgvp":{"name":"usersInPhoto","abstract":"

      A list of users and their position on the image.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV08carouselC0SayAC08CarouselC0VGSgvp":{"name":"carouselMedia","abstract":"

      If the media is a carousel, this object contains all the images or videos inside it.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV8distanceSdSgvp":{"name":"distance","abstract":"

      The distance to the location of media when it has been searched by location.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia/Count.html":{"name":"Count","abstract":"

      A struct cointaing the number of elements.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia/Resolution.html":{"name":"Resolution","abstract":"

      A struct containing the resolution of a video or image.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia/Images.html":{"name":"Images","abstract":"

      A struct cointaining the thumbnail, low and high resolution images of the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia/Videos.html":{"name":"Videos","abstract":"

      A struct cointaining the low and standard resolution videos of the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia/UserInPhoto.html":{"name":"UserInPhoto","abstract":"

      A struct containing the user and its position on the image.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia/CarouselMedia.html":{"name":"CarouselMedia","abstract":"

      The struct containing the images or videos of the carousel.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:s9DecodablePxs7Decoder_p4from_tKcfc":{"name":"init(from:)","parent_name":"InstagramMedia"},"Structs/InstagramRelationship.html#/s:14SwiftInstagram0B12RelationshipV14outgoingStatusSSvp":{"name":"outgoingStatus","abstract":"

      Your relationship to the user. It can be follows, requested or none.

      ","parent_name":"InstagramRelationship"},"Structs/InstagramRelationship.html#/s:14SwiftInstagram0B12RelationshipV14incomingStatusSSSgvp":{"name":"incomingStatus","abstract":"

      A user’s relationship to you. It can be followed_by, requested_by, blocked_by_you or none.

      ","parent_name":"InstagramRelationship"},"Structs/InstagramUser/Counts.html#/s:14SwiftInstagram0B4UserV6CountsV5mediaSivp":{"name":"media","abstract":"

      The number of media uploaded by the user.

      ","parent_name":"Counts"},"Structs/InstagramUser/Counts.html#/s:14SwiftInstagram0B4UserV6CountsV7followsSivp":{"name":"follows","abstract":"

      The number os users followed by the user.

      ","parent_name":"Counts"},"Structs/InstagramUser/Counts.html#/s:14SwiftInstagram0B4UserV6CountsV10followedBySivp":{"name":"followedBy","abstract":"

      The number of followers of the user.

      ","parent_name":"Counts"},"Structs/InstagramUser.html#/s:14SwiftInstagram0B4UserV2idSSvp":{"name":"id","abstract":"

      The user identifier.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser.html#/s:14SwiftInstagram0B4UserV8usernameSSvp":{"name":"username","abstract":"

      The user’s username.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser.html#/s:14SwiftInstagram0B4UserV14profilePicture10Foundation3URLVvp":{"name":"profilePicture","abstract":"

      The URL of the user’s profile picture.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser.html#/s:14SwiftInstagram0B4UserV8fullNameSSvp":{"name":"fullName","abstract":"

      The user’s full name.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser.html#/s:14SwiftInstagram0B4UserV3bioSSSgvp":{"name":"bio","abstract":"

      The text of the user’s biography.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser.html#/s:14SwiftInstagram0B4UserV7websiteSSSgvp":{"name":"website","abstract":"

      The user’s website.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser.html#/s:14SwiftInstagram0B4UserV10isBusinessSbSgvp":{"name":"isBusiness","abstract":"

      A Boolean value that indicates whether the user has a business profile.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser.html#/s:14SwiftInstagram0B4UserV6countsAC6CountsVSgvp":{"name":"counts","abstract":"

      A Counts object that contains the number of followers, following and media of a user.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser/Counts.html":{"name":"Counts","abstract":"

      The struct containing the number of followers, following and media of a user.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser.html":{"name":"InstagramUser","abstract":"

      The struct containing an Instagram user.

      "},"Structs/InstagramRelationship.html":{"name":"InstagramRelationship","abstract":"

      The struct containing an Instagram relationship.

      "},"Structs/InstagramMedia.html":{"name":"InstagramMedia","abstract":"

      The struct containing an Instagram media.

      "},"Structs/InstagramComment.html":{"name":"InstagramComment","abstract":"

      The struct containing an Instagram comment.

      "},"Structs/InstagramTag.html":{"name":"InstagramTag","abstract":"

      The struct containing an Instagram tag.

      "},"Structs/InstagramLocation.html":{"name":"InstagramLocation","abstract":"

      The struct containing an Instagram location.

      "},"Enums/InstagramScope.html#/s:14SwiftInstagram0B5ScopeO5basicA2CmF":{"name":"basic","abstract":"

      To read a user’s profile info and media.

      ","parent_name":"InstagramScope"},"Enums/InstagramScope.html#/s:14SwiftInstagram0B5ScopeO13publicContentA2CmF":{"name":"publicContent","abstract":"

      To read any public profile info and media on a user’s behalf.

      ","parent_name":"InstagramScope"},"Enums/InstagramScope.html#/s:14SwiftInstagram0B5ScopeO12followerListA2CmF":{"name":"followerList","abstract":"

      To read the list of followers and followed-by users.

      ","parent_name":"InstagramScope"},"Enums/InstagramScope.html#/s:14SwiftInstagram0B5ScopeO8commentsA2CmF":{"name":"comments","abstract":"

      To post and delete comments on a user’s behalf.

      ","parent_name":"InstagramScope"},"Enums/InstagramScope.html#/s:14SwiftInstagram0B5ScopeO13relationshipsA2CmF":{"name":"relationships","abstract":"

      To follow and unfollow accounts on a user’s behalf.

      ","parent_name":"InstagramScope"},"Enums/InstagramScope.html#/s:14SwiftInstagram0B5ScopeO5likesA2CmF":{"name":"likes","abstract":"

      To like and unlike media on a user’s behalf.

      ","parent_name":"InstagramScope"},"Enums/InstagramScope.html#/s:14SwiftInstagram0B5ScopeO3allA2CmF":{"name":"all","abstract":"

      To get all permissions.

      ","parent_name":"InstagramScope"},"Enums/InstagramScope.html":{"name":"InstagramScope","abstract":"

      Login permissions (scopes) currently supported by Instagram.

      "},"Classes/Instagram.html#/s:14SwiftInstagram0B0C19EmptySuccessHandlera":{"name":"EmptySuccessHandler","abstract":"

      Empty success handler

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C14SuccessHandlera":{"name":"SuccessHandler","abstract":"

      Success handler

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera":{"name":"FailureHandler","abstract":"

      Failure handler

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C6sharedACvpZ":{"name":"shared","abstract":"

      Returns a shared instance of Instagram.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C5loginySo22UINavigationControllerC4from_SayAA0B5ScopeOG10withScopesyycSg7successys5Error_pcSg7failuretF":{"name":"login(from:withScopes:success:failure:)","abstract":"

      Starts an authentication process.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C6logoutSbyF":{"name":"logout()","abstract":"

      Ends the current session.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C15isAuthenticatedSbvp":{"name":"isAuthenticated","abstract":"

      Returns whether a user is currently authenticated or not.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C16storeAccessTokenSbSSF":{"name":"storeAccessToken(_:)","abstract":"

      Store your own authenticated access token so you don’t have to use the included login authentication.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C19retrieveAccessTokenSSSgyF":{"name":"retrieveAccessToken()","abstract":"

      Returns the current access token.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C8commentsySS9fromMedia_ySayAA0B7CommentVGcSg7successys5Error_pcSg7failuretF":{"name":"comments(fromMedia:success:failure:)","abstract":"

      Get a list of recent comments on a media object.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C13createCommentySS7onMedia_SS4textyAA0bD0VcSg7successys5Error_pcSg7failuretF":{"name":"createComment(onMedia:text:success:failure:)","abstract":"

      Create a comment on a media object.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C13deleteCommentySS_SS7onMediayycSg7successys5Error_pcSg7failuretF":{"name":"deleteComment(_:onMedia:success:failure:)","abstract":"

      Remove a comment either on the authenticated user’s media object or authored by the authenticated user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C3tagySS_yAA0B3TagVcSg7successys5Error_pcSg7failuretF":{"name":"tag(_:success:failure:)","abstract":"

      Get information about a tag object.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C11recentMediaySS7withTag_SSSg03maxF2IdAF03minfH0SiSg5countySayAA0bD0VGcSg7successys5Error_pcSg7failuretF":{"name":"recentMedia(withTag:maxTagId:minTagId:count:success:failure:)","abstract":"

      Get a list of recently tagged media.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C6searchySS3tag_ySayAA0B3TagVGcSg7successys5Error_pcSg7failuretF":{"name":"search(tag:success:failure:)","abstract":"

      Search for tags by name.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C4userySS_yAA0B4UserVcSg7successys5Error_pcSg7failuretF":{"name":"user(_:success:failure:)","abstract":"

      Get information about a user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C11recentMediaySS8fromUser_SSSg5maxIdAF03minH0SiSg5countySayAA0bD0VGcSg7successys5Error_pcSg7failuretF":{"name":"recentMedia(fromUser:maxId:minId:count:success:failure:)","abstract":"

      Get the most recent media published by a user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C14userLikedMediaySSSg9maxLikeId_SiSg5countySayAA0bE0VGcSg7successys5Error_pcSg7failuretF":{"name":"userLikedMedia(maxLikeId:count:success:failure:)","abstract":"

      Get the list of recent media liked by the currently authenticated user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C6searchySS4user_SiSg5countySayAA0B4UserVGcSg7successys5Error_pcSg7failuretF":{"name":"search(user:count:success:failure:)","abstract":"

      Get a list of users matching the query.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C5likesySS7inMedia_ySayAA0B4UserVGcSg7successys5Error_pcSg7failuretF":{"name":"likes(inMedia:success:failure:)","abstract":"

      Get a list of users who have liked this media.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C4likeySS5media_yycSg7successys5Error_pcSg7failuretF":{"name":"like(media:success:failure:)","abstract":"

      Set a like on this media by the currently authenticated user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C6unlikeySS5media_yycSg7successys5Error_pcSg7failuretF":{"name":"unlike(media:success:failure:)","abstract":"

      Remove a like on this media by the currently authenticated user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C5mediaySS6withId_yAA0B5MediaVcSg7successys5Error_pcSg7failuretF":{"name":"media(withId:success:failure:)","abstract":"

      Get information about a media object.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C5mediaySS13withShortcode_yAA0B5MediaVcSg7successys5Error_pcSg7failuretF":{"name":"media(withShortcode:success:failure:)","abstract":"

      Get information about a media object.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C11searchMediaySdSg8latitude_AE9longitudeSiSg8distanceySayAA0bD0VGcSg7successys5Error_pcSg7failuretF":{"name":"searchMedia(latitude:longitude:distance:success:failure:)","abstract":"

      Search for recent media in a given area.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C11searchMediaySC22CLLocationCoordinate2DVSg11coordinates_SiSg8distanceySayAA0bD0VGcSg7successys5Error_pcSg7failuretF":{"name":"searchMedia(coordinates:distance:success:failure:)","abstract":"

      Search for recent media in a given area.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C11userFollowsyySayAA0B4UserVGcSg7success_ys5Error_pcSg7failuretF":{"name":"userFollows(success:failure:)","abstract":"

      Get the list of users this user follows.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C13userFollowersyySayAA0B4UserVGcSg7success_ys5Error_pcSg7failuretF":{"name":"userFollowers(success:failure:)","abstract":"

      Get the list of users this user is followed by.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C15userRequestedByyySayAA0B4UserVGcSg7success_ys5Error_pcSg7failuretF":{"name":"userRequestedBy(success:failure:)","abstract":"

      List the users who have requested this user’s permission to follow.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C16userRelationshipySS8withUser_yAA0bD0VcSg7successys5Error_pcSg7failuretF":{"name":"userRelationship(withUser:success:failure:)","abstract":"

      Get information about a relationship to another user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C6followySS4user_yAA0B12RelationshipVcSg7successys5Error_pcSg7failuretF":{"name":"follow(user:success:failure:)","abstract":"

      Follows the target user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C8unfollowySS4user_yAA0B12RelationshipVcSg7successys5Error_pcSg7failuretF":{"name":"unfollow(user:success:failure:)","abstract":"

      Unfollows the target user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C14approveRequestySS8fromUser_yAA0B12RelationshipVcSg7successys5Error_pcSg7failuretF":{"name":"approveRequest(fromUser:success:failure:)","abstract":"

      Approve the target user’s request.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C13ignoreRequestySS8fromUser_yAA0B12RelationshipVcSg7successys5Error_pcSg7failuretF":{"name":"ignoreRequest(fromUser:success:failure:)","abstract":"

      Ignore the target user’s request.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C8locationySS_yAA0B8LocationVySSGcSg7successys5Error_pcSg7failuretF":{"name":"location(_:success:failure:)","abstract":"

      Get information about a location.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C11recentMediaySS11forLocation_SSSg5maxIdAF03minH0ySayAA0bD0VGcSg7successys5Error_pcSg7failuretF":{"name":"recentMedia(forLocation:maxId:minId:success:failure:)","abstract":"

      Get a list of recent media objects from a given location.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C14searchLocationySdSg8latitude_AE9longitudeSiSg8distanceSSSg16facebookPlacesIdySayAA0bD0VySSGGcSg7successys5Error_pcSg7failuretF":{"name":"searchLocation(latitude:longitude:distance:facebookPlacesId:success:failure:)","abstract":"

      Search for a location by geographic coordinate.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C14searchLocationySC22CLLocationCoordinate2DVSg11coordinates_SiSg8distanceSSSg16facebookPlacesIdySayAA0bD0VySSGGcSg7successys5Error_pcSg7failuretF":{"name":"searchLocation(coordinates:distance:facebookPlacesId:success:failure:)","abstract":"

      Search for a location by geographic coordinate.

      ","parent_name":"Instagram"},"Classes/Instagram.html":{"name":"Instagram","abstract":"

      A set of helper functions to make the Instagram API easier to use.

      "},"API.html":{"name":"API"},"Authentication.html":{"name":"Authentication"},"Models.html":{"name":"Models"},"Errors.html":{"name":"Errors"},"Other Structs.html":{"name":"Other Structures","abstract":"

      The following structures are available globally.

      "}} \ No newline at end of file +{"Other Structs.html#/s:14SwiftInstagram0B13EmptyResponseV":{"name":"InstagramEmptyResponse","abstract":"

      Dummy struct used for empty Instagram API data responses.

      "},"Enums/InstagramError.html#/s:14SwiftInstagram0B5ErrorO10badRequestyA2CmF":{"name":"badRequest","abstract":"

      Error 400 on login.

      ","parent_name":"InstagramError"},"Enums/InstagramError.html#/s:14SwiftInstagram0B5ErrorO8decodingyACSS_tcACmF":{"name":"decoding(message:)","abstract":"

      Error decoding JSON.

      ","parent_name":"InstagramError"},"Enums/InstagramError.html#/s:14SwiftInstagram0B5ErrorO14invalidRequestyACSS_tcACmF":{"name":"invalidRequest(message:)","abstract":"

      Invalid API request.

      ","parent_name":"InstagramError"},"Enums/InstagramError.html#/s:14SwiftInstagram0B5ErrorO08keychainC0yACs5Int32V_tcACmF":{"name":"keychainError(code:)","abstract":"

      Keychain error.

      ","parent_name":"InstagramError"},"Enums/InstagramError.html#/s:14SwiftInstagram0B5ErrorO28missingClientIdOrRedirectURIyA2CmF":{"name":"missingClientIdOrRedirectURI","abstract":"

      The client id or the redirect URI is missing inside the Info.plist file.

      ","parent_name":"InstagramError"},"Enums/InstagramError.html":{"name":"InstagramError","abstract":"

      A type representing an error value that can be thrown.

      "},"Structs/InstagramLocation.html#/s:14SwiftInstagram0B8LocationV2idxvp":{"name":"id","abstract":"

      The location identifier.

      ","parent_name":"InstagramLocation"},"Structs/InstagramLocation.html#/s:14SwiftInstagram0B8LocationV4nameSSvp":{"name":"name","abstract":"

      The location name.

      ","parent_name":"InstagramLocation"},"Structs/InstagramLocation.html#/s:14SwiftInstagram0B8LocationV13streetAddressSSSgvp":{"name":"streetAddress","abstract":"

      The location address.

      ","parent_name":"InstagramLocation"},"Structs/InstagramLocation.html#/s:14SwiftInstagram0B8LocationV11coordinatesSo22CLLocationCoordinate2DVvp":{"name":"coordinates","abstract":"

      The location coordinates (latitude and longitude).

      ","parent_name":"InstagramLocation"},"Structs/InstagramLocation.html#/s:Se4fromxs7Decoder_p_tKcfc":{"name":"init(from:)","parent_name":"InstagramLocation"},"Structs/InstagramTag.html#/s:14SwiftInstagram0B3TagV4nameSSvp":{"name":"name","abstract":"

      The tag name.

      ","parent_name":"InstagramTag"},"Structs/InstagramTag.html#/s:14SwiftInstagram0B3TagV10mediaCountSivp":{"name":"mediaCount","abstract":"

      The number of media in which the tag appears.

      ","parent_name":"InstagramTag"},"Structs/InstagramComment.html#/s:14SwiftInstagram0B7CommentV2idSSvp":{"name":"id","abstract":"

      The comment identifier.

      ","parent_name":"InstagramComment"},"Structs/InstagramComment.html#/s:14SwiftInstagram0B7CommentV4textSSvp":{"name":"text","abstract":"

      The comment text.

      ","parent_name":"InstagramComment"},"Structs/InstagramComment.html#/s:14SwiftInstagram0B7CommentV4fromAA0B4UserVvp":{"name":"from","abstract":"

      The user who created the comment.

      ","parent_name":"InstagramComment"},"Structs/InstagramComment.html#/s:14SwiftInstagram0B7CommentV11createdDate10Foundation0E0Vvp":{"name":"createdDate","abstract":"

      The date and time when the comment was created.

      ","parent_name":"InstagramComment"},"Structs/InstagramComment.html#/s:Se4fromxs7Decoder_p_tKcfc":{"name":"init(from:)","parent_name":"InstagramComment"},"Structs/InstagramMedia/CarouselMedia.html#/s:14SwiftInstagram0B5MediaV08CarouselC0V6imagesAC6ImagesVSgvp":{"name":"images","abstract":"

      The images inside the carousel.

      ","parent_name":"CarouselMedia"},"Structs/InstagramMedia/CarouselMedia.html#/s:14SwiftInstagram0B5MediaV08CarouselC0V6videosAC6VideosVSgvp":{"name":"videos","abstract":"

      The videos inside the carousel.

      ","parent_name":"CarouselMedia"},"Structs/InstagramMedia/CarouselMedia.html#/s:14SwiftInstagram0B5MediaV08CarouselC0V12usersInPhotoSayAC04UserfG0VGvp":{"name":"usersInPhoto","abstract":"

      A list of users and their position on the image.

      ","parent_name":"CarouselMedia"},"Structs/InstagramMedia/CarouselMedia.html#/s:14SwiftInstagram0B5MediaV08CarouselC0V4typeSSvp":{"name":"type","abstract":"

      The type of media. It can be image or video.

      ","parent_name":"CarouselMedia"},"Structs/InstagramMedia/UserInPhoto/Position.html#/s:14SwiftInstagram0B5MediaV11UserInPhotoV8PositionV1xSdvp":{"name":"x","abstract":"

      The value of the x-axis.

      ","parent_name":"Position"},"Structs/InstagramMedia/UserInPhoto/Position.html#/s:14SwiftInstagram0B5MediaV11UserInPhotoV8PositionV1ySdvp":{"name":"y","abstract":"

      The value of the y-axis.

      ","parent_name":"Position"},"Structs/InstagramMedia/UserInPhoto/UserInPhotoUsername.html#/s:14SwiftInstagram0B5MediaV11UserInPhotoV0deF8UsernameV8usernameSSvp":{"name":"username","abstract":"

      The value of the x-axis.

      ","parent_name":"UserInPhotoUsername"},"Structs/InstagramMedia/UserInPhoto.html#/s:14SwiftInstagram0B5MediaV11UserInPhotoV4userAE0deF8UsernameVvp":{"name":"user","abstract":"

      The user that appears in the image.

      ","parent_name":"UserInPhoto"},"Structs/InstagramMedia/UserInPhoto.html#/s:14SwiftInstagram0B5MediaV11UserInPhotoV8positionAE8PositionVvp":{"name":"position","abstract":"

      The position in points of the user in the image.

      ","parent_name":"UserInPhoto"},"Structs/InstagramMedia/UserInPhoto/UserInPhotoUsername.html":{"name":"UserInPhotoUsername","abstract":"

      A struct containing the username of the tagged user.

      ","parent_name":"UserInPhoto"},"Structs/InstagramMedia/UserInPhoto/Position.html":{"name":"Position","abstract":"

      A struct containing the value of the coordinate axes, ‘x’ and ‘y’.

      ","parent_name":"UserInPhoto"},"Structs/InstagramMedia/Videos.html#/s:14SwiftInstagram0B5MediaV6VideosV13lowResolutionAC0F0Vvp":{"name":"lowResolution","abstract":"

      A Resolution object that contains the width, height and URL of the low resolution video.

      ","parent_name":"Videos"},"Structs/InstagramMedia/Videos.html#/s:14SwiftInstagram0B5MediaV6VideosV18standardResolutionAC0F0Vvp":{"name":"standardResolution","abstract":"

      A Resolution object that contains the width, height and URL of the standard resolution video.

      ","parent_name":"Videos"},"Structs/InstagramMedia/Videos.html#/s:14SwiftInstagram0B5MediaV6VideosV12lowBandwidthAC10ResolutionVSgvp":{"name":"lowBandwidth","abstract":"

      A Resolution object that contains the width, height and URL of the low bandwidth video.

      ","parent_name":"Videos"},"Structs/InstagramMedia/Images.html#/s:14SwiftInstagram0B5MediaV6ImagesV9thumbnailAC10ResolutionVvp":{"name":"thumbnail","abstract":"

      A Resolution object that contains the width, height and URL of the thumbnail.

      ","parent_name":"Images"},"Structs/InstagramMedia/Images.html#/s:14SwiftInstagram0B5MediaV6ImagesV13lowResolutionAC0F0Vvp":{"name":"lowResolution","abstract":"

      A Resolution object that contains the width, height and URL of the low resolution image.

      ","parent_name":"Images"},"Structs/InstagramMedia/Images.html#/s:14SwiftInstagram0B5MediaV6ImagesV18standardResolutionAC0F0Vvp":{"name":"standardResolution","abstract":"

      A Resolution object that contains the width, height and URL of the standard resolution image.

      ","parent_name":"Images"},"Structs/InstagramMedia/Resolution.html#/s:14SwiftInstagram0B5MediaV10ResolutionV5widthSivp":{"name":"width","abstract":"

      The width of the media.

      ","parent_name":"Resolution"},"Structs/InstagramMedia/Resolution.html#/s:14SwiftInstagram0B5MediaV10ResolutionV6heightSivp":{"name":"height","abstract":"

      The height of the media.

      ","parent_name":"Resolution"},"Structs/InstagramMedia/Resolution.html#/s:14SwiftInstagram0B5MediaV10ResolutionV3url10Foundation3URLVvp":{"name":"url","abstract":"

      The URL to download the media.

      ","parent_name":"Resolution"},"Structs/InstagramMedia/Count.html#/s:14SwiftInstagram0B5MediaV5CountV5countSivp":{"name":"count","abstract":"

      The number of elements.

      ","parent_name":"Count"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV2idSSvp":{"name":"id","abstract":"

      The media identifier.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV4userAA0B4UserVvp":{"name":"user","abstract":"

      The owner of the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV11createdDate10Foundation0E0Vvp":{"name":"createdDate","abstract":"

      The date and time when the media was created.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV4typeSSvp":{"name":"type","abstract":"

      The type of media. It can be image or video.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV6imagesAC6ImagesVvp":{"name":"images","abstract":"

      The thumbnail, low and standard resolution images of the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV6videosAC6VideosVSgvp":{"name":"videos","abstract":"

      The low and standard resolution videos of the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV7captionAA0B7CommentVSgvp":{"name":"caption","abstract":"

      The headline of the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV8commentsAC5CountVvp":{"name":"comments","abstract":"

      A Count object that contains the number of comments on the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV5likesAC5CountVvp":{"name":"likes","abstract":"

      A Count object that contains the number of likes on the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV4tagsSaySSGvp":{"name":"tags","abstract":"

      A list of tags used in the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV12userHasLikedSbvp":{"name":"userHasLiked","abstract":"

      A Boolean value that indicates whether the current logged-in user has liked the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV6filterSSvp":{"name":"filter","abstract":"

      The image filter used by the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV4link10Foundation3URLVvp":{"name":"link","abstract":"

      The URL link of the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV8locationAA0B8LocationVySiGSgvp":{"name":"location","abstract":"

      The location of the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV12usersInPhotoSayAC04UsereF0VGSgvp":{"name":"usersInPhoto","abstract":"

      A list of users and their position on the image.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV08carouselC0SayAC08CarouselC0VGSgvp":{"name":"carouselMedia","abstract":"

      If the media is a carousel, this object contains all the images or videos inside it.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV8distanceSdSgvp":{"name":"distance","abstract":"

      The distance to the location of media when it has been searched by location.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia/Count.html":{"name":"Count","abstract":"

      A struct cointaing the number of elements.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia/Resolution.html":{"name":"Resolution","abstract":"

      A struct containing the resolution of a video or image.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia/Images.html":{"name":"Images","abstract":"

      A struct cointaining the thumbnail, low and high resolution images of the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia/Videos.html":{"name":"Videos","abstract":"

      A struct cointaining the low and standard resolution videos of the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia/UserInPhoto.html":{"name":"UserInPhoto","abstract":"

      A struct containing the user and its position on the image.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia/CarouselMedia.html":{"name":"CarouselMedia","abstract":"

      The struct containing the images or videos of the carousel.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:Se4fromxs7Decoder_p_tKcfc":{"name":"init(from:)","parent_name":"InstagramMedia"},"Structs/InstagramRelationship.html#/s:14SwiftInstagram0B12RelationshipV14outgoingStatusSSvp":{"name":"outgoingStatus","abstract":"

      Your relationship to the user. It can be follows, requested or none.

      ","parent_name":"InstagramRelationship"},"Structs/InstagramRelationship.html#/s:14SwiftInstagram0B12RelationshipV14incomingStatusSSSgvp":{"name":"incomingStatus","abstract":"

      A user’s relationship to you. It can be followed_by, requested_by, blocked_by_you or none.

      ","parent_name":"InstagramRelationship"},"Structs/InstagramUser/Counts.html#/s:14SwiftInstagram0B4UserV6CountsV5mediaSivp":{"name":"media","abstract":"

      The number of media uploaded by the user.

      ","parent_name":"Counts"},"Structs/InstagramUser/Counts.html#/s:14SwiftInstagram0B4UserV6CountsV7followsSivp":{"name":"follows","abstract":"

      The number os users followed by the user.

      ","parent_name":"Counts"},"Structs/InstagramUser/Counts.html#/s:14SwiftInstagram0B4UserV6CountsV10followedBySivp":{"name":"followedBy","abstract":"

      The number of followers of the user.

      ","parent_name":"Counts"},"Structs/InstagramUser.html#/s:14SwiftInstagram0B4UserV2idSSvp":{"name":"id","abstract":"

      The user identifier.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser.html#/s:14SwiftInstagram0B4UserV8usernameSSvp":{"name":"username","abstract":"

      The user’s username.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser.html#/s:14SwiftInstagram0B4UserV14profilePicture10Foundation3URLVvp":{"name":"profilePicture","abstract":"

      The URL of the user’s profile picture.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser.html#/s:14SwiftInstagram0B4UserV8fullNameSSvp":{"name":"fullName","abstract":"

      The user’s full name.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser.html#/s:14SwiftInstagram0B4UserV3bioSSSgvp":{"name":"bio","abstract":"

      The text of the user’s biography.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser.html#/s:14SwiftInstagram0B4UserV7websiteSSSgvp":{"name":"website","abstract":"

      The user’s website.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser.html#/s:14SwiftInstagram0B4UserV10isBusinessSbSgvp":{"name":"isBusiness","abstract":"

      A Boolean value that indicates whether the user has a business profile.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser.html#/s:14SwiftInstagram0B4UserV6countsAC6CountsVSgvp":{"name":"counts","abstract":"

      A Counts object that contains the number of followers, following and media of a user.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser/Counts.html":{"name":"Counts","abstract":"

      The struct containing the number of followers, following and media of a user.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser.html":{"name":"InstagramUser","abstract":"

      The struct containing an Instagram user.

      "},"Structs/InstagramRelationship.html":{"name":"InstagramRelationship","abstract":"

      The struct containing an Instagram relationship.

      "},"Structs/InstagramMedia.html":{"name":"InstagramMedia","abstract":"

      The struct containing an Instagram media.

      "},"Structs/InstagramComment.html":{"name":"InstagramComment","abstract":"

      The struct containing an Instagram comment.

      "},"Structs/InstagramTag.html":{"name":"InstagramTag","abstract":"

      The struct containing an Instagram tag.

      "},"Structs/InstagramLocation.html":{"name":"InstagramLocation","abstract":"

      The struct containing an Instagram location.

      "},"Enums/InstagramScope.html#/s:14SwiftInstagram0B5ScopeO5basicyA2CmF":{"name":"basic","abstract":"

      To read a user’s profile info and media.

      ","parent_name":"InstagramScope"},"Enums/InstagramScope.html#/s:14SwiftInstagram0B5ScopeO13publicContentyA2CmF":{"name":"publicContent","abstract":"

      To read any public profile info and media on a user’s behalf.

      ","parent_name":"InstagramScope"},"Enums/InstagramScope.html#/s:14SwiftInstagram0B5ScopeO12followerListyA2CmF":{"name":"followerList","abstract":"

      To read the list of followers and followed-by users.

      ","parent_name":"InstagramScope"},"Enums/InstagramScope.html#/s:14SwiftInstagram0B5ScopeO8commentsyA2CmF":{"name":"comments","abstract":"

      To post and delete comments on a user’s behalf.

      ","parent_name":"InstagramScope"},"Enums/InstagramScope.html#/s:14SwiftInstagram0B5ScopeO13relationshipsyA2CmF":{"name":"relationships","abstract":"

      To follow and unfollow accounts on a user’s behalf.

      ","parent_name":"InstagramScope"},"Enums/InstagramScope.html#/s:14SwiftInstagram0B5ScopeO5likesyA2CmF":{"name":"likes","abstract":"

      To like and unlike media on a user’s behalf.

      ","parent_name":"InstagramScope"},"Enums/InstagramScope.html#/s:14SwiftInstagram0B5ScopeO3allyA2CmF":{"name":"all","abstract":"

      To get all permissions.

      ","parent_name":"InstagramScope"},"Enums/InstagramScope.html":{"name":"InstagramScope","abstract":"

      Login permissions (scopes) currently supported by Instagram.

      "},"Classes/Instagram.html#/s:14SwiftInstagram0B0C19EmptySuccessHandlera":{"name":"EmptySuccessHandler","abstract":"

      Empty success handler.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C14SuccessHandlera":{"name":"SuccessHandler","abstract":"

      Success handler.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera":{"name":"FailureHandler","abstract":"

      Failure handler.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C6sharedACvpZ":{"name":"shared","abstract":"

      Returns a shared instance of Instagram.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C5login4from10withScopes7success7failureySo22UINavigationControllerC_SayAA0B5ScopeOGyycSgys5Error_pcSgtF":{"name":"login(from:withScopes:success:failure:)","abstract":"

      Starts an authentication process.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C6logoutSbyF":{"name":"logout()","abstract":"

      Ends the current session.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C15isAuthenticatedSbvp":{"name":"isAuthenticated","abstract":"

      Returns whether a user is currently authenticated or not.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C16storeAccessTokenySbSSF":{"name":"storeAccessToken(_:)","abstract":"

      Store your own authenticated access token so you don’t have to use the included login authentication.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C19retrieveAccessTokenSSSgyF":{"name":"retrieveAccessToken()","abstract":"

      Returns the current access token.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C8comments9fromMedia7success7failureySS_ySayAA0B7CommentVGcSgys5Error_pcSgtF":{"name":"comments(fromMedia:success:failure:)","abstract":"

      Get a list of recent comments on a media object.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C13createComment7onMedia4text7success7failureySS_SSyAA0bD0VcSgys5Error_pcSgtF":{"name":"createComment(onMedia:text:success:failure:)","abstract":"

      Create a comment on a media object.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C13deleteComment_7onMedia7success7failureySS_SSyycSgys5Error_pcSgtF":{"name":"deleteComment(_:onMedia:success:failure:)","abstract":"

      Remove a comment either on the authenticated user’s media object or authored by the authenticated user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C5likes7inMedia7success7failureySS_ySayAA0B4UserVGcSgys5Error_pcSgtF":{"name":"likes(inMedia:success:failure:)","abstract":"

      Get a list of users who have liked this media.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C4like5media7success7failureySS_yycSgys5Error_pcSgtF":{"name":"like(media:success:failure:)","abstract":"

      Set a like on this media by the currently authenticated user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C6unlike5media7success7failureySS_yycSgys5Error_pcSgtF":{"name":"unlike(media:success:failure:)","abstract":"

      Remove a like on this media by the currently authenticated user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C8location_7success7failureySS_yAA0B8LocationVySSGcSgys5Error_pcSgtF":{"name":"location(_:success:failure:)","abstract":"

      Get information about a location.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C11recentMedia11forLocation5maxId03minH07success7failureySS_SSSgAJySayAA0bD0VGcSgys5Error_pcSgtF":{"name":"recentMedia(forLocation:maxId:minId:success:failure:)","abstract":"

      Get a list of recent media objects from a given location.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C14searchLocation8latitude9longitude8distance16facebookPlacesId7success7failureySdSg_AKSiSgSSSgySayAA0bD0VySSGGcSgys5Error_pcSgtF":{"name":"searchLocation(latitude:longitude:distance:facebookPlacesId:success:failure:)","abstract":"

      Search for a location by geographic coordinate.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C14searchLocation11coordinates8distance16facebookPlacesId7success7failureySo22CLLocationCoordinate2DVSg_SiSgSSSgySayAA0bD0VySSGGcSgys5Error_pcSgtF":{"name":"searchLocation(coordinates:distance:facebookPlacesId:success:failure:)","abstract":"

      Search for a location by geographic coordinate.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C5media6withId7success7failureySS_yAA0B5MediaVcSgys5Error_pcSgtF":{"name":"media(withId:success:failure:)","abstract":"

      Get information about a media object.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C5media13withShortcode7success7failureySS_yAA0B5MediaVcSgys5Error_pcSgtF":{"name":"media(withShortcode:success:failure:)","abstract":"

      Get information about a media object.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C11searchMedia8latitude9longitude8distance7success7failureySdSg_AJSiSgySayAA0bD0VGcSgys5Error_pcSgtF":{"name":"searchMedia(latitude:longitude:distance:success:failure:)","abstract":"

      Search for recent media in a given area.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C11searchMedia11coordinates8distance7success7failureySo22CLLocationCoordinate2DVSg_SiSgySayAA0bD0VGcSgys5Error_pcSgtF":{"name":"searchMedia(coordinates:distance:success:failure:)","abstract":"

      Search for recent media in a given area.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C11userFollows7success7failureyySayAA0B4UserVGcSg_ys5Error_pcSgtF":{"name":"userFollows(success:failure:)","abstract":"

      Get the list of users this user follows.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C13userFollowers7success7failureyySayAA0B4UserVGcSg_ys5Error_pcSgtF":{"name":"userFollowers(success:failure:)","abstract":"

      Get the list of users this user is followed by.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C15userRequestedBy7success7failureyySayAA0B4UserVGcSg_ys5Error_pcSgtF":{"name":"userRequestedBy(success:failure:)","abstract":"

      List the users who have requested this user’s permission to follow.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C16userRelationship8withUser7success7failureySS_yAA0bD0VcSgys5Error_pcSgtF":{"name":"userRelationship(withUser:success:failure:)","abstract":"

      Get information about a relationship to another user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C6follow4user7success7failureySS_yAA0B12RelationshipVcSgys5Error_pcSgtF":{"name":"follow(user:success:failure:)","abstract":"

      Follows the target user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C8unfollow4user7success7failureySS_yAA0B12RelationshipVcSgys5Error_pcSgtF":{"name":"unfollow(user:success:failure:)","abstract":"

      Unfollows the target user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C14approveRequest8fromUser7success7failureySS_yAA0B12RelationshipVcSgys5Error_pcSgtF":{"name":"approveRequest(fromUser:success:failure:)","abstract":"

      Approve the target user’s request.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C13ignoreRequest8fromUser7success7failureySS_yAA0B12RelationshipVcSgys5Error_pcSgtF":{"name":"ignoreRequest(fromUser:success:failure:)","abstract":"

      Ignore the target user’s request.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C3tag_7success7failureySS_yAA0B3TagVcSgys5Error_pcSgtF":{"name":"tag(_:success:failure:)","abstract":"

      Get information about a tag object.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C11recentMedia7withTag03maxF2Id03minfH05count7success7failureySS_SSSgAKSiSgySayAA0bD0VGcSgys5Error_pcSgtF":{"name":"recentMedia(withTag:maxTagId:minTagId:count:success:failure:)","abstract":"

      Get a list of recently tagged media.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C6search3tag7success7failureySS_ySayAA0B3TagVGcSgys5Error_pcSgtF":{"name":"search(tag:success:failure:)","abstract":"

      Search for tags by name.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C4user_7success7failureySS_yAA0B4UserVcSgys5Error_pcSgtF":{"name":"user(_:success:failure:)","abstract":"

      Get information about a user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C11recentMedia8fromUser5maxId03minH05count7success7failureySS_SSSgAKSiSgySayAA0bD0VGcSgys5Error_pcSgtF":{"name":"recentMedia(fromUser:maxId:minId:count:success:failure:)","abstract":"

      Get the most recent media published by a user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C14userLikedMedia9maxLikeId5count7success7failureySSSg_SiSgySayAA0bE0VGcSgys5Error_pcSgtF":{"name":"userLikedMedia(maxLikeId:count:success:failure:)","abstract":"

      Get the list of recent media liked by the currently authenticated user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C6search4user5count7success7failureySS_SiSgySayAA0B4UserVGcSgys5Error_pcSgtF":{"name":"search(user:count:success:failure:)","abstract":"

      Get a list of users matching the query.

      ","parent_name":"Instagram"},"Classes/Instagram.html":{"name":"Instagram","abstract":"

      A set of helper functions to make the Instagram API easier to use.

      "},"API.html":{"name":"API"},"Authentication.html":{"name":"Authentication"},"Models.html":{"name":"Models"},"Errors.html":{"name":"Errors"},"Other Structs.html":{"name":"Other Structures","abstract":"

      The following structures are available globally.

      "}} \ No newline at end of file diff --git a/docs/docsets/SwiftInstagram.docset/Contents/Resources/docSet.dsidx b/docs/docsets/SwiftInstagram.docset/Contents/Resources/docSet.dsidx index 550d714..d5d589c 100644 Binary files a/docs/docsets/SwiftInstagram.docset/Contents/Resources/docSet.dsidx and b/docs/docsets/SwiftInstagram.docset/Contents/Resources/docSet.dsidx differ diff --git a/docs/docsets/SwiftInstagram.tgz b/docs/docsets/SwiftInstagram.tgz index de00dd5..baeb22e 100644 Binary files a/docs/docsets/SwiftInstagram.tgz and b/docs/docsets/SwiftInstagram.tgz differ diff --git a/docs/index.html b/docs/index.html index 18ef5d5..bd92eb3 100644 --- a/docs/index.html +++ b/docs/index.html @@ -237,8 +237,8 @@

      Author

      diff --git a/docs/search.json b/docs/search.json index 242f61e..d20341d 100644 --- a/docs/search.json +++ b/docs/search.json @@ -1 +1 @@ -{"Other Structs.html#/s:14SwiftInstagram0B13EmptyResponseV":{"name":"InstagramEmptyResponse","abstract":"

      Dummy struct used for empty Instagram API data responses

      "},"Enums/InstagramError.html#/s:14SwiftInstagram0B5ErrorO10badRequestA2CmF":{"name":"badRequest","abstract":"

      Error 400 on login

      ","parent_name":"InstagramError"},"Enums/InstagramError.html#/s:14SwiftInstagram0B5ErrorO8decodingACSS7message_tcACmF":{"name":"decoding","abstract":"

      Error decoding JSON

      ","parent_name":"InstagramError"},"Enums/InstagramError.html#/s:14SwiftInstagram0B5ErrorO14invalidRequestACSS7message_tcACmF":{"name":"invalidRequest","abstract":"

      Invalid API request

      ","parent_name":"InstagramError"},"Enums/InstagramError.html#/s:14SwiftInstagram0B5ErrorO08keychainC0ACs5Int32V4code_tcACmF":{"name":"keychainError","abstract":"

      Keychain error

      ","parent_name":"InstagramError"},"Enums/InstagramError.html#/s:14SwiftInstagram0B5ErrorO28missingClientIdOrRedirectURIA2CmF":{"name":"missingClientIdOrRedirectURI","abstract":"

      The client id or the redirect URI is missing inside the Info.plist file

      ","parent_name":"InstagramError"},"Enums/InstagramError.html":{"name":"InstagramError","abstract":"

      A type representing an error value that can be thrown.

      "},"Structs/InstagramLocation.html#/s:14SwiftInstagram0B8LocationV2idxvp":{"name":"id","abstract":"

      The location identifier.

      ","parent_name":"InstagramLocation"},"Structs/InstagramLocation.html#/s:14SwiftInstagram0B8LocationV4nameSSvp":{"name":"name","abstract":"

      The location name.

      ","parent_name":"InstagramLocation"},"Structs/InstagramLocation.html#/s:14SwiftInstagram0B8LocationV13streetAddressSSSgvp":{"name":"streetAddress","abstract":"

      The location address.

      ","parent_name":"InstagramLocation"},"Structs/InstagramLocation.html#/s:14SwiftInstagram0B8LocationV11coordinatesSC22CLLocationCoordinate2DVvp":{"name":"coordinates","abstract":"

      The location coordinates (latitude and longitude).

      ","parent_name":"InstagramLocation"},"Structs/InstagramLocation.html#/s:s9DecodablePxs7Decoder_p4from_tKcfc":{"name":"init(from:)","parent_name":"InstagramLocation"},"Structs/InstagramTag.html#/s:14SwiftInstagram0B3TagV4nameSSvp":{"name":"name","abstract":"

      The tag name.

      ","parent_name":"InstagramTag"},"Structs/InstagramTag.html#/s:14SwiftInstagram0B3TagV10mediaCountSivp":{"name":"mediaCount","abstract":"

      The number of media in which the tag appears.

      ","parent_name":"InstagramTag"},"Structs/InstagramComment.html#/s:14SwiftInstagram0B7CommentV2idSSvp":{"name":"id","abstract":"

      The comment identifier.

      ","parent_name":"InstagramComment"},"Structs/InstagramComment.html#/s:14SwiftInstagram0B7CommentV4textSSvp":{"name":"text","abstract":"

      The comment text.

      ","parent_name":"InstagramComment"},"Structs/InstagramComment.html#/s:14SwiftInstagram0B7CommentV4fromAA0B4UserVvp":{"name":"from","abstract":"

      The user who created the comment.

      ","parent_name":"InstagramComment"},"Structs/InstagramComment.html#/s:14SwiftInstagram0B7CommentV11createdDate10Foundation0E0Vvp":{"name":"createdDate","abstract":"

      The date and time when the comment was created.

      ","parent_name":"InstagramComment"},"Structs/InstagramComment.html#/s:s9DecodablePxs7Decoder_p4from_tKcfc":{"name":"init(from:)","parent_name":"InstagramComment"},"Structs/InstagramMedia/CarouselMedia.html#/s:14SwiftInstagram0B5MediaV08CarouselC0V6imagesAC6ImagesVSgvp":{"name":"images","abstract":"

      The images inside the carousel.

      ","parent_name":"CarouselMedia"},"Structs/InstagramMedia/CarouselMedia.html#/s:14SwiftInstagram0B5MediaV08CarouselC0V6videosAC6VideosVSgvp":{"name":"videos","abstract":"

      The videos inside the carousel.

      ","parent_name":"CarouselMedia"},"Structs/InstagramMedia/CarouselMedia.html#/s:14SwiftInstagram0B5MediaV08CarouselC0V12usersInPhotoSayAC04UserfG0VGvp":{"name":"usersInPhoto","abstract":"

      A list of users and their position on the image.

      ","parent_name":"CarouselMedia"},"Structs/InstagramMedia/CarouselMedia.html#/s:14SwiftInstagram0B5MediaV08CarouselC0V4typeSSvp":{"name":"type","abstract":"

      The type of media. It can be image or video.

      ","parent_name":"CarouselMedia"},"Structs/InstagramMedia/UserInPhoto/Position.html#/s:14SwiftInstagram0B5MediaV11UserInPhotoV8PositionV1xSdvp":{"name":"x","abstract":"

      The value of the x-axis.

      ","parent_name":"Position"},"Structs/InstagramMedia/UserInPhoto/Position.html#/s:14SwiftInstagram0B5MediaV11UserInPhotoV8PositionV1ySdvp":{"name":"y","abstract":"

      The value of the y-axis.

      ","parent_name":"Position"},"Structs/InstagramMedia/UserInPhoto/UserInPhotoUsername.html#/s:14SwiftInstagram0B5MediaV11UserInPhotoV0deF8UsernameV8usernameSSvp":{"name":"username","abstract":"

      The value of the x-axis.

      ","parent_name":"UserInPhotoUsername"},"Structs/InstagramMedia/UserInPhoto.html#/s:14SwiftInstagram0B5MediaV11UserInPhotoV4userAE0deF8UsernameVvp":{"name":"user","abstract":"

      The user that appears in the image.

      ","parent_name":"UserInPhoto"},"Structs/InstagramMedia/UserInPhoto.html#/s:14SwiftInstagram0B5MediaV11UserInPhotoV8positionAE8PositionVvp":{"name":"position","abstract":"

      The position in points of the user in the image.

      ","parent_name":"UserInPhoto"},"Structs/InstagramMedia/UserInPhoto/UserInPhotoUsername.html":{"name":"UserInPhotoUsername","abstract":"

      A struct containing the username of the tagged user.

      ","parent_name":"UserInPhoto"},"Structs/InstagramMedia/UserInPhoto/Position.html":{"name":"Position","abstract":"

      A struct containing the value of the coordinate axes, ‘x’ and ‘y’.

      ","parent_name":"UserInPhoto"},"Structs/InstagramMedia/Videos.html#/s:14SwiftInstagram0B5MediaV6VideosV13lowResolutionAC0F0Vvp":{"name":"lowResolution","abstract":"

      A Resolution object that contains the width, height and URL of the low resolution video.

      ","parent_name":"Videos"},"Structs/InstagramMedia/Videos.html#/s:14SwiftInstagram0B5MediaV6VideosV18standardResolutionAC0F0Vvp":{"name":"standardResolution","abstract":"

      A Resolution object that contains the width, height and URL of the standard resolution video.

      ","parent_name":"Videos"},"Structs/InstagramMedia/Videos.html#/s:14SwiftInstagram0B5MediaV6VideosV12lowBandwidthAC10ResolutionVSgvp":{"name":"lowBandwidth","abstract":"

      A Resolution object that contains the width, height and URL of the low bandwidth video.

      ","parent_name":"Videos"},"Structs/InstagramMedia/Images.html#/s:14SwiftInstagram0B5MediaV6ImagesV9thumbnailAC10ResolutionVvp":{"name":"thumbnail","abstract":"

      A Resolution object that contains the width, height and URL of the thumbnail.

      ","parent_name":"Images"},"Structs/InstagramMedia/Images.html#/s:14SwiftInstagram0B5MediaV6ImagesV13lowResolutionAC0F0Vvp":{"name":"lowResolution","abstract":"

      A Resolution object that contains the width, height and URL of the low resolution image.

      ","parent_name":"Images"},"Structs/InstagramMedia/Images.html#/s:14SwiftInstagram0B5MediaV6ImagesV18standardResolutionAC0F0Vvp":{"name":"standardResolution","abstract":"

      A Resolution object that contains the width, height and URL of the standard resolution image.

      ","parent_name":"Images"},"Structs/InstagramMedia/Resolution.html#/s:14SwiftInstagram0B5MediaV10ResolutionV5widthSivp":{"name":"width","abstract":"

      The width of the media.

      ","parent_name":"Resolution"},"Structs/InstagramMedia/Resolution.html#/s:14SwiftInstagram0B5MediaV10ResolutionV6heightSivp":{"name":"height","abstract":"

      The height of the media.

      ","parent_name":"Resolution"},"Structs/InstagramMedia/Resolution.html#/s:14SwiftInstagram0B5MediaV10ResolutionV3url10Foundation3URLVvp":{"name":"url","abstract":"

      The URL to download the media.

      ","parent_name":"Resolution"},"Structs/InstagramMedia/Count.html#/s:14SwiftInstagram0B5MediaV5CountV5countSivp":{"name":"count","abstract":"

      The number of elements.

      ","parent_name":"Count"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV2idSSvp":{"name":"id","abstract":"

      The media identifier.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV4userAA0B4UserVvp":{"name":"user","abstract":"

      The owner of the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV11createdDate10Foundation0E0Vvp":{"name":"createdDate","abstract":"

      The date and time when the media was created.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV4typeSSvp":{"name":"type","abstract":"

      The type of media. It can be image or video.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV6imagesAC6ImagesVvp":{"name":"images","abstract":"

      The thumbnail, low and standard resolution images of the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV6videosAC6VideosVSgvp":{"name":"videos","abstract":"

      The low and standard resolution videos of the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV7captionAA0B7CommentVSgvp":{"name":"caption","abstract":"

      The headline of the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV8commentsAC5CountVvp":{"name":"comments","abstract":"

      A Count object that contains the number of comments on the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV5likesAC5CountVvp":{"name":"likes","abstract":"

      A Count object that contains the number of likes on the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV4tagsSaySSGvp":{"name":"tags","abstract":"

      A list of tags used in the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV12userHasLikedSbvp":{"name":"userHasLiked","abstract":"

      A Boolean value that indicates whether the current logged-in user has liked the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV6filterSSvp":{"name":"filter","abstract":"

      The image filter used by the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV4link10Foundation3URLVvp":{"name":"link","abstract":"

      The URL link of the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV8locationAA0B8LocationVySiGSgvp":{"name":"location","abstract":"

      The location of the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV12usersInPhotoSayAC04UsereF0VGSgvp":{"name":"usersInPhoto","abstract":"

      A list of users and their position on the image.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV08carouselC0SayAC08CarouselC0VGSgvp":{"name":"carouselMedia","abstract":"

      If the media is a carousel, this object contains all the images or videos inside it.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV8distanceSdSgvp":{"name":"distance","abstract":"

      The distance to the location of media when it has been searched by location.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia/Count.html":{"name":"Count","abstract":"

      A struct cointaing the number of elements.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia/Resolution.html":{"name":"Resolution","abstract":"

      A struct containing the resolution of a video or image.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia/Images.html":{"name":"Images","abstract":"

      A struct cointaining the thumbnail, low and high resolution images of the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia/Videos.html":{"name":"Videos","abstract":"

      A struct cointaining the low and standard resolution videos of the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia/UserInPhoto.html":{"name":"UserInPhoto","abstract":"

      A struct containing the user and its position on the image.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia/CarouselMedia.html":{"name":"CarouselMedia","abstract":"

      The struct containing the images or videos of the carousel.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:s9DecodablePxs7Decoder_p4from_tKcfc":{"name":"init(from:)","parent_name":"InstagramMedia"},"Structs/InstagramRelationship.html#/s:14SwiftInstagram0B12RelationshipV14outgoingStatusSSvp":{"name":"outgoingStatus","abstract":"

      Your relationship to the user. It can be follows, requested or none.

      ","parent_name":"InstagramRelationship"},"Structs/InstagramRelationship.html#/s:14SwiftInstagram0B12RelationshipV14incomingStatusSSSgvp":{"name":"incomingStatus","abstract":"

      A user’s relationship to you. It can be followed_by, requested_by, blocked_by_you or none.

      ","parent_name":"InstagramRelationship"},"Structs/InstagramUser/Counts.html#/s:14SwiftInstagram0B4UserV6CountsV5mediaSivp":{"name":"media","abstract":"

      The number of media uploaded by the user.

      ","parent_name":"Counts"},"Structs/InstagramUser/Counts.html#/s:14SwiftInstagram0B4UserV6CountsV7followsSivp":{"name":"follows","abstract":"

      The number os users followed by the user.

      ","parent_name":"Counts"},"Structs/InstagramUser/Counts.html#/s:14SwiftInstagram0B4UserV6CountsV10followedBySivp":{"name":"followedBy","abstract":"

      The number of followers of the user.

      ","parent_name":"Counts"},"Structs/InstagramUser.html#/s:14SwiftInstagram0B4UserV2idSSvp":{"name":"id","abstract":"

      The user identifier.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser.html#/s:14SwiftInstagram0B4UserV8usernameSSvp":{"name":"username","abstract":"

      The user’s username.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser.html#/s:14SwiftInstagram0B4UserV14profilePicture10Foundation3URLVvp":{"name":"profilePicture","abstract":"

      The URL of the user’s profile picture.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser.html#/s:14SwiftInstagram0B4UserV8fullNameSSvp":{"name":"fullName","abstract":"

      The user’s full name.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser.html#/s:14SwiftInstagram0B4UserV3bioSSSgvp":{"name":"bio","abstract":"

      The text of the user’s biography.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser.html#/s:14SwiftInstagram0B4UserV7websiteSSSgvp":{"name":"website","abstract":"

      The user’s website.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser.html#/s:14SwiftInstagram0B4UserV10isBusinessSbSgvp":{"name":"isBusiness","abstract":"

      A Boolean value that indicates whether the user has a business profile.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser.html#/s:14SwiftInstagram0B4UserV6countsAC6CountsVSgvp":{"name":"counts","abstract":"

      A Counts object that contains the number of followers, following and media of a user.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser/Counts.html":{"name":"Counts","abstract":"

      The struct containing the number of followers, following and media of a user.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser.html":{"name":"InstagramUser","abstract":"

      The struct containing an Instagram user.

      "},"Structs/InstagramRelationship.html":{"name":"InstagramRelationship","abstract":"

      The struct containing an Instagram relationship.

      "},"Structs/InstagramMedia.html":{"name":"InstagramMedia","abstract":"

      The struct containing an Instagram media.

      "},"Structs/InstagramComment.html":{"name":"InstagramComment","abstract":"

      The struct containing an Instagram comment.

      "},"Structs/InstagramTag.html":{"name":"InstagramTag","abstract":"

      The struct containing an Instagram tag.

      "},"Structs/InstagramLocation.html":{"name":"InstagramLocation","abstract":"

      The struct containing an Instagram location.

      "},"Enums/InstagramScope.html#/s:14SwiftInstagram0B5ScopeO5basicA2CmF":{"name":"basic","abstract":"

      To read a user’s profile info and media.

      ","parent_name":"InstagramScope"},"Enums/InstagramScope.html#/s:14SwiftInstagram0B5ScopeO13publicContentA2CmF":{"name":"publicContent","abstract":"

      To read any public profile info and media on a user’s behalf.

      ","parent_name":"InstagramScope"},"Enums/InstagramScope.html#/s:14SwiftInstagram0B5ScopeO12followerListA2CmF":{"name":"followerList","abstract":"

      To read the list of followers and followed-by users.

      ","parent_name":"InstagramScope"},"Enums/InstagramScope.html#/s:14SwiftInstagram0B5ScopeO8commentsA2CmF":{"name":"comments","abstract":"

      To post and delete comments on a user’s behalf.

      ","parent_name":"InstagramScope"},"Enums/InstagramScope.html#/s:14SwiftInstagram0B5ScopeO13relationshipsA2CmF":{"name":"relationships","abstract":"

      To follow and unfollow accounts on a user’s behalf.

      ","parent_name":"InstagramScope"},"Enums/InstagramScope.html#/s:14SwiftInstagram0B5ScopeO5likesA2CmF":{"name":"likes","abstract":"

      To like and unlike media on a user’s behalf.

      ","parent_name":"InstagramScope"},"Enums/InstagramScope.html#/s:14SwiftInstagram0B5ScopeO3allA2CmF":{"name":"all","abstract":"

      To get all permissions.

      ","parent_name":"InstagramScope"},"Enums/InstagramScope.html":{"name":"InstagramScope","abstract":"

      Login permissions (scopes) currently supported by Instagram.

      "},"Classes/Instagram.html#/s:14SwiftInstagram0B0C19EmptySuccessHandlera":{"name":"EmptySuccessHandler","abstract":"

      Empty success handler

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C14SuccessHandlera":{"name":"SuccessHandler","abstract":"

      Success handler

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera":{"name":"FailureHandler","abstract":"

      Failure handler

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C6sharedACvpZ":{"name":"shared","abstract":"

      Returns a shared instance of Instagram.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C5loginySo22UINavigationControllerC4from_SayAA0B5ScopeOG10withScopesyycSg7successys5Error_pcSg7failuretF":{"name":"login(from:withScopes:success:failure:)","abstract":"

      Starts an authentication process.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C6logoutSbyF":{"name":"logout()","abstract":"

      Ends the current session.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C15isAuthenticatedSbvp":{"name":"isAuthenticated","abstract":"

      Returns whether a user is currently authenticated or not.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C16storeAccessTokenSbSSF":{"name":"storeAccessToken(_:)","abstract":"

      Store your own authenticated access token so you don’t have to use the included login authentication.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C19retrieveAccessTokenSSSgyF":{"name":"retrieveAccessToken()","abstract":"

      Returns the current access token.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C8commentsySS9fromMedia_ySayAA0B7CommentVGcSg7successys5Error_pcSg7failuretF":{"name":"comments(fromMedia:success:failure:)","abstract":"

      Get a list of recent comments on a media object.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C13createCommentySS7onMedia_SS4textyAA0bD0VcSg7successys5Error_pcSg7failuretF":{"name":"createComment(onMedia:text:success:failure:)","abstract":"

      Create a comment on a media object.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C13deleteCommentySS_SS7onMediayycSg7successys5Error_pcSg7failuretF":{"name":"deleteComment(_:onMedia:success:failure:)","abstract":"

      Remove a comment either on the authenticated user’s media object or authored by the authenticated user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C3tagySS_yAA0B3TagVcSg7successys5Error_pcSg7failuretF":{"name":"tag(_:success:failure:)","abstract":"

      Get information about a tag object.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C11recentMediaySS7withTag_SSSg03maxF2IdAF03minfH0SiSg5countySayAA0bD0VGcSg7successys5Error_pcSg7failuretF":{"name":"recentMedia(withTag:maxTagId:minTagId:count:success:failure:)","abstract":"

      Get a list of recently tagged media.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C6searchySS3tag_ySayAA0B3TagVGcSg7successys5Error_pcSg7failuretF":{"name":"search(tag:success:failure:)","abstract":"

      Search for tags by name.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C4userySS_yAA0B4UserVcSg7successys5Error_pcSg7failuretF":{"name":"user(_:success:failure:)","abstract":"

      Get information about a user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C11recentMediaySS8fromUser_SSSg5maxIdAF03minH0SiSg5countySayAA0bD0VGcSg7successys5Error_pcSg7failuretF":{"name":"recentMedia(fromUser:maxId:minId:count:success:failure:)","abstract":"

      Get the most recent media published by a user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C14userLikedMediaySSSg9maxLikeId_SiSg5countySayAA0bE0VGcSg7successys5Error_pcSg7failuretF":{"name":"userLikedMedia(maxLikeId:count:success:failure:)","abstract":"

      Get the list of recent media liked by the currently authenticated user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C6searchySS4user_SiSg5countySayAA0B4UserVGcSg7successys5Error_pcSg7failuretF":{"name":"search(user:count:success:failure:)","abstract":"

      Get a list of users matching the query.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C5likesySS7inMedia_ySayAA0B4UserVGcSg7successys5Error_pcSg7failuretF":{"name":"likes(inMedia:success:failure:)","abstract":"

      Get a list of users who have liked this media.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C4likeySS5media_yycSg7successys5Error_pcSg7failuretF":{"name":"like(media:success:failure:)","abstract":"

      Set a like on this media by the currently authenticated user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C6unlikeySS5media_yycSg7successys5Error_pcSg7failuretF":{"name":"unlike(media:success:failure:)","abstract":"

      Remove a like on this media by the currently authenticated user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C5mediaySS6withId_yAA0B5MediaVcSg7successys5Error_pcSg7failuretF":{"name":"media(withId:success:failure:)","abstract":"

      Get information about a media object.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C5mediaySS13withShortcode_yAA0B5MediaVcSg7successys5Error_pcSg7failuretF":{"name":"media(withShortcode:success:failure:)","abstract":"

      Get information about a media object.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C11searchMediaySdSg8latitude_AE9longitudeSiSg8distanceySayAA0bD0VGcSg7successys5Error_pcSg7failuretF":{"name":"searchMedia(latitude:longitude:distance:success:failure:)","abstract":"

      Search for recent media in a given area.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C11searchMediaySC22CLLocationCoordinate2DVSg11coordinates_SiSg8distanceySayAA0bD0VGcSg7successys5Error_pcSg7failuretF":{"name":"searchMedia(coordinates:distance:success:failure:)","abstract":"

      Search for recent media in a given area.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C11userFollowsyySayAA0B4UserVGcSg7success_ys5Error_pcSg7failuretF":{"name":"userFollows(success:failure:)","abstract":"

      Get the list of users this user follows.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C13userFollowersyySayAA0B4UserVGcSg7success_ys5Error_pcSg7failuretF":{"name":"userFollowers(success:failure:)","abstract":"

      Get the list of users this user is followed by.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C15userRequestedByyySayAA0B4UserVGcSg7success_ys5Error_pcSg7failuretF":{"name":"userRequestedBy(success:failure:)","abstract":"

      List the users who have requested this user’s permission to follow.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C16userRelationshipySS8withUser_yAA0bD0VcSg7successys5Error_pcSg7failuretF":{"name":"userRelationship(withUser:success:failure:)","abstract":"

      Get information about a relationship to another user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C6followySS4user_yAA0B12RelationshipVcSg7successys5Error_pcSg7failuretF":{"name":"follow(user:success:failure:)","abstract":"

      Follows the target user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C8unfollowySS4user_yAA0B12RelationshipVcSg7successys5Error_pcSg7failuretF":{"name":"unfollow(user:success:failure:)","abstract":"

      Unfollows the target user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C14approveRequestySS8fromUser_yAA0B12RelationshipVcSg7successys5Error_pcSg7failuretF":{"name":"approveRequest(fromUser:success:failure:)","abstract":"

      Approve the target user’s request.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C13ignoreRequestySS8fromUser_yAA0B12RelationshipVcSg7successys5Error_pcSg7failuretF":{"name":"ignoreRequest(fromUser:success:failure:)","abstract":"

      Ignore the target user’s request.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C8locationySS_yAA0B8LocationVySSGcSg7successys5Error_pcSg7failuretF":{"name":"location(_:success:failure:)","abstract":"

      Get information about a location.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C11recentMediaySS11forLocation_SSSg5maxIdAF03minH0ySayAA0bD0VGcSg7successys5Error_pcSg7failuretF":{"name":"recentMedia(forLocation:maxId:minId:success:failure:)","abstract":"

      Get a list of recent media objects from a given location.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C14searchLocationySdSg8latitude_AE9longitudeSiSg8distanceSSSg16facebookPlacesIdySayAA0bD0VySSGGcSg7successys5Error_pcSg7failuretF":{"name":"searchLocation(latitude:longitude:distance:facebookPlacesId:success:failure:)","abstract":"

      Search for a location by geographic coordinate.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C14searchLocationySC22CLLocationCoordinate2DVSg11coordinates_SiSg8distanceSSSg16facebookPlacesIdySayAA0bD0VySSGGcSg7successys5Error_pcSg7failuretF":{"name":"searchLocation(coordinates:distance:facebookPlacesId:success:failure:)","abstract":"

      Search for a location by geographic coordinate.

      ","parent_name":"Instagram"},"Classes/Instagram.html":{"name":"Instagram","abstract":"

      A set of helper functions to make the Instagram API easier to use.

      "},"API.html":{"name":"API"},"Authentication.html":{"name":"Authentication"},"Models.html":{"name":"Models"},"Errors.html":{"name":"Errors"},"Other Structs.html":{"name":"Other Structures","abstract":"

      The following structures are available globally.

      "}} \ No newline at end of file +{"Other Structs.html#/s:14SwiftInstagram0B13EmptyResponseV":{"name":"InstagramEmptyResponse","abstract":"

      Dummy struct used for empty Instagram API data responses.

      "},"Enums/InstagramError.html#/s:14SwiftInstagram0B5ErrorO10badRequestyA2CmF":{"name":"badRequest","abstract":"

      Error 400 on login.

      ","parent_name":"InstagramError"},"Enums/InstagramError.html#/s:14SwiftInstagram0B5ErrorO8decodingyACSS_tcACmF":{"name":"decoding(message:)","abstract":"

      Error decoding JSON.

      ","parent_name":"InstagramError"},"Enums/InstagramError.html#/s:14SwiftInstagram0B5ErrorO14invalidRequestyACSS_tcACmF":{"name":"invalidRequest(message:)","abstract":"

      Invalid API request.

      ","parent_name":"InstagramError"},"Enums/InstagramError.html#/s:14SwiftInstagram0B5ErrorO08keychainC0yACs5Int32V_tcACmF":{"name":"keychainError(code:)","abstract":"

      Keychain error.

      ","parent_name":"InstagramError"},"Enums/InstagramError.html#/s:14SwiftInstagram0B5ErrorO28missingClientIdOrRedirectURIyA2CmF":{"name":"missingClientIdOrRedirectURI","abstract":"

      The client id or the redirect URI is missing inside the Info.plist file.

      ","parent_name":"InstagramError"},"Enums/InstagramError.html":{"name":"InstagramError","abstract":"

      A type representing an error value that can be thrown.

      "},"Structs/InstagramLocation.html#/s:14SwiftInstagram0B8LocationV2idxvp":{"name":"id","abstract":"

      The location identifier.

      ","parent_name":"InstagramLocation"},"Structs/InstagramLocation.html#/s:14SwiftInstagram0B8LocationV4nameSSvp":{"name":"name","abstract":"

      The location name.

      ","parent_name":"InstagramLocation"},"Structs/InstagramLocation.html#/s:14SwiftInstagram0B8LocationV13streetAddressSSSgvp":{"name":"streetAddress","abstract":"

      The location address.

      ","parent_name":"InstagramLocation"},"Structs/InstagramLocation.html#/s:14SwiftInstagram0B8LocationV11coordinatesSo22CLLocationCoordinate2DVvp":{"name":"coordinates","abstract":"

      The location coordinates (latitude and longitude).

      ","parent_name":"InstagramLocation"},"Structs/InstagramLocation.html#/s:Se4fromxs7Decoder_p_tKcfc":{"name":"init(from:)","parent_name":"InstagramLocation"},"Structs/InstagramTag.html#/s:14SwiftInstagram0B3TagV4nameSSvp":{"name":"name","abstract":"

      The tag name.

      ","parent_name":"InstagramTag"},"Structs/InstagramTag.html#/s:14SwiftInstagram0B3TagV10mediaCountSivp":{"name":"mediaCount","abstract":"

      The number of media in which the tag appears.

      ","parent_name":"InstagramTag"},"Structs/InstagramComment.html#/s:14SwiftInstagram0B7CommentV2idSSvp":{"name":"id","abstract":"

      The comment identifier.

      ","parent_name":"InstagramComment"},"Structs/InstagramComment.html#/s:14SwiftInstagram0B7CommentV4textSSvp":{"name":"text","abstract":"

      The comment text.

      ","parent_name":"InstagramComment"},"Structs/InstagramComment.html#/s:14SwiftInstagram0B7CommentV4fromAA0B4UserVvp":{"name":"from","abstract":"

      The user who created the comment.

      ","parent_name":"InstagramComment"},"Structs/InstagramComment.html#/s:14SwiftInstagram0B7CommentV11createdDate10Foundation0E0Vvp":{"name":"createdDate","abstract":"

      The date and time when the comment was created.

      ","parent_name":"InstagramComment"},"Structs/InstagramComment.html#/s:Se4fromxs7Decoder_p_tKcfc":{"name":"init(from:)","parent_name":"InstagramComment"},"Structs/InstagramMedia/CarouselMedia.html#/s:14SwiftInstagram0B5MediaV08CarouselC0V6imagesAC6ImagesVSgvp":{"name":"images","abstract":"

      The images inside the carousel.

      ","parent_name":"CarouselMedia"},"Structs/InstagramMedia/CarouselMedia.html#/s:14SwiftInstagram0B5MediaV08CarouselC0V6videosAC6VideosVSgvp":{"name":"videos","abstract":"

      The videos inside the carousel.

      ","parent_name":"CarouselMedia"},"Structs/InstagramMedia/CarouselMedia.html#/s:14SwiftInstagram0B5MediaV08CarouselC0V12usersInPhotoSayAC04UserfG0VGvp":{"name":"usersInPhoto","abstract":"

      A list of users and their position on the image.

      ","parent_name":"CarouselMedia"},"Structs/InstagramMedia/CarouselMedia.html#/s:14SwiftInstagram0B5MediaV08CarouselC0V4typeSSvp":{"name":"type","abstract":"

      The type of media. It can be image or video.

      ","parent_name":"CarouselMedia"},"Structs/InstagramMedia/UserInPhoto/Position.html#/s:14SwiftInstagram0B5MediaV11UserInPhotoV8PositionV1xSdvp":{"name":"x","abstract":"

      The value of the x-axis.

      ","parent_name":"Position"},"Structs/InstagramMedia/UserInPhoto/Position.html#/s:14SwiftInstagram0B5MediaV11UserInPhotoV8PositionV1ySdvp":{"name":"y","abstract":"

      The value of the y-axis.

      ","parent_name":"Position"},"Structs/InstagramMedia/UserInPhoto/UserInPhotoUsername.html#/s:14SwiftInstagram0B5MediaV11UserInPhotoV0deF8UsernameV8usernameSSvp":{"name":"username","abstract":"

      The value of the x-axis.

      ","parent_name":"UserInPhotoUsername"},"Structs/InstagramMedia/UserInPhoto.html#/s:14SwiftInstagram0B5MediaV11UserInPhotoV4userAE0deF8UsernameVvp":{"name":"user","abstract":"

      The user that appears in the image.

      ","parent_name":"UserInPhoto"},"Structs/InstagramMedia/UserInPhoto.html#/s:14SwiftInstagram0B5MediaV11UserInPhotoV8positionAE8PositionVvp":{"name":"position","abstract":"

      The position in points of the user in the image.

      ","parent_name":"UserInPhoto"},"Structs/InstagramMedia/UserInPhoto/UserInPhotoUsername.html":{"name":"UserInPhotoUsername","abstract":"

      A struct containing the username of the tagged user.

      ","parent_name":"UserInPhoto"},"Structs/InstagramMedia/UserInPhoto/Position.html":{"name":"Position","abstract":"

      A struct containing the value of the coordinate axes, ‘x’ and ‘y’.

      ","parent_name":"UserInPhoto"},"Structs/InstagramMedia/Videos.html#/s:14SwiftInstagram0B5MediaV6VideosV13lowResolutionAC0F0Vvp":{"name":"lowResolution","abstract":"

      A Resolution object that contains the width, height and URL of the low resolution video.

      ","parent_name":"Videos"},"Structs/InstagramMedia/Videos.html#/s:14SwiftInstagram0B5MediaV6VideosV18standardResolutionAC0F0Vvp":{"name":"standardResolution","abstract":"

      A Resolution object that contains the width, height and URL of the standard resolution video.

      ","parent_name":"Videos"},"Structs/InstagramMedia/Videos.html#/s:14SwiftInstagram0B5MediaV6VideosV12lowBandwidthAC10ResolutionVSgvp":{"name":"lowBandwidth","abstract":"

      A Resolution object that contains the width, height and URL of the low bandwidth video.

      ","parent_name":"Videos"},"Structs/InstagramMedia/Images.html#/s:14SwiftInstagram0B5MediaV6ImagesV9thumbnailAC10ResolutionVvp":{"name":"thumbnail","abstract":"

      A Resolution object that contains the width, height and URL of the thumbnail.

      ","parent_name":"Images"},"Structs/InstagramMedia/Images.html#/s:14SwiftInstagram0B5MediaV6ImagesV13lowResolutionAC0F0Vvp":{"name":"lowResolution","abstract":"

      A Resolution object that contains the width, height and URL of the low resolution image.

      ","parent_name":"Images"},"Structs/InstagramMedia/Images.html#/s:14SwiftInstagram0B5MediaV6ImagesV18standardResolutionAC0F0Vvp":{"name":"standardResolution","abstract":"

      A Resolution object that contains the width, height and URL of the standard resolution image.

      ","parent_name":"Images"},"Structs/InstagramMedia/Resolution.html#/s:14SwiftInstagram0B5MediaV10ResolutionV5widthSivp":{"name":"width","abstract":"

      The width of the media.

      ","parent_name":"Resolution"},"Structs/InstagramMedia/Resolution.html#/s:14SwiftInstagram0B5MediaV10ResolutionV6heightSivp":{"name":"height","abstract":"

      The height of the media.

      ","parent_name":"Resolution"},"Structs/InstagramMedia/Resolution.html#/s:14SwiftInstagram0B5MediaV10ResolutionV3url10Foundation3URLVvp":{"name":"url","abstract":"

      The URL to download the media.

      ","parent_name":"Resolution"},"Structs/InstagramMedia/Count.html#/s:14SwiftInstagram0B5MediaV5CountV5countSivp":{"name":"count","abstract":"

      The number of elements.

      ","parent_name":"Count"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV2idSSvp":{"name":"id","abstract":"

      The media identifier.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV4userAA0B4UserVvp":{"name":"user","abstract":"

      The owner of the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV11createdDate10Foundation0E0Vvp":{"name":"createdDate","abstract":"

      The date and time when the media was created.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV4typeSSvp":{"name":"type","abstract":"

      The type of media. It can be image or video.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV6imagesAC6ImagesVvp":{"name":"images","abstract":"

      The thumbnail, low and standard resolution images of the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV6videosAC6VideosVSgvp":{"name":"videos","abstract":"

      The low and standard resolution videos of the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV7captionAA0B7CommentVSgvp":{"name":"caption","abstract":"

      The headline of the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV8commentsAC5CountVvp":{"name":"comments","abstract":"

      A Count object that contains the number of comments on the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV5likesAC5CountVvp":{"name":"likes","abstract":"

      A Count object that contains the number of likes on the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV4tagsSaySSGvp":{"name":"tags","abstract":"

      A list of tags used in the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV12userHasLikedSbvp":{"name":"userHasLiked","abstract":"

      A Boolean value that indicates whether the current logged-in user has liked the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV6filterSSvp":{"name":"filter","abstract":"

      The image filter used by the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV4link10Foundation3URLVvp":{"name":"link","abstract":"

      The URL link of the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV8locationAA0B8LocationVySiGSgvp":{"name":"location","abstract":"

      The location of the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV12usersInPhotoSayAC04UsereF0VGSgvp":{"name":"usersInPhoto","abstract":"

      A list of users and their position on the image.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV08carouselC0SayAC08CarouselC0VGSgvp":{"name":"carouselMedia","abstract":"

      If the media is a carousel, this object contains all the images or videos inside it.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:14SwiftInstagram0B5MediaV8distanceSdSgvp":{"name":"distance","abstract":"

      The distance to the location of media when it has been searched by location.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia/Count.html":{"name":"Count","abstract":"

      A struct cointaing the number of elements.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia/Resolution.html":{"name":"Resolution","abstract":"

      A struct containing the resolution of a video or image.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia/Images.html":{"name":"Images","abstract":"

      A struct cointaining the thumbnail, low and high resolution images of the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia/Videos.html":{"name":"Videos","abstract":"

      A struct cointaining the low and standard resolution videos of the media.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia/UserInPhoto.html":{"name":"UserInPhoto","abstract":"

      A struct containing the user and its position on the image.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia/CarouselMedia.html":{"name":"CarouselMedia","abstract":"

      The struct containing the images or videos of the carousel.

      ","parent_name":"InstagramMedia"},"Structs/InstagramMedia.html#/s:Se4fromxs7Decoder_p_tKcfc":{"name":"init(from:)","parent_name":"InstagramMedia"},"Structs/InstagramRelationship.html#/s:14SwiftInstagram0B12RelationshipV14outgoingStatusSSvp":{"name":"outgoingStatus","abstract":"

      Your relationship to the user. It can be follows, requested or none.

      ","parent_name":"InstagramRelationship"},"Structs/InstagramRelationship.html#/s:14SwiftInstagram0B12RelationshipV14incomingStatusSSSgvp":{"name":"incomingStatus","abstract":"

      A user’s relationship to you. It can be followed_by, requested_by, blocked_by_you or none.

      ","parent_name":"InstagramRelationship"},"Structs/InstagramUser/Counts.html#/s:14SwiftInstagram0B4UserV6CountsV5mediaSivp":{"name":"media","abstract":"

      The number of media uploaded by the user.

      ","parent_name":"Counts"},"Structs/InstagramUser/Counts.html#/s:14SwiftInstagram0B4UserV6CountsV7followsSivp":{"name":"follows","abstract":"

      The number os users followed by the user.

      ","parent_name":"Counts"},"Structs/InstagramUser/Counts.html#/s:14SwiftInstagram0B4UserV6CountsV10followedBySivp":{"name":"followedBy","abstract":"

      The number of followers of the user.

      ","parent_name":"Counts"},"Structs/InstagramUser.html#/s:14SwiftInstagram0B4UserV2idSSvp":{"name":"id","abstract":"

      The user identifier.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser.html#/s:14SwiftInstagram0B4UserV8usernameSSvp":{"name":"username","abstract":"

      The user’s username.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser.html#/s:14SwiftInstagram0B4UserV14profilePicture10Foundation3URLVvp":{"name":"profilePicture","abstract":"

      The URL of the user’s profile picture.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser.html#/s:14SwiftInstagram0B4UserV8fullNameSSvp":{"name":"fullName","abstract":"

      The user’s full name.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser.html#/s:14SwiftInstagram0B4UserV3bioSSSgvp":{"name":"bio","abstract":"

      The text of the user’s biography.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser.html#/s:14SwiftInstagram0B4UserV7websiteSSSgvp":{"name":"website","abstract":"

      The user’s website.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser.html#/s:14SwiftInstagram0B4UserV10isBusinessSbSgvp":{"name":"isBusiness","abstract":"

      A Boolean value that indicates whether the user has a business profile.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser.html#/s:14SwiftInstagram0B4UserV6countsAC6CountsVSgvp":{"name":"counts","abstract":"

      A Counts object that contains the number of followers, following and media of a user.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser/Counts.html":{"name":"Counts","abstract":"

      The struct containing the number of followers, following and media of a user.

      ","parent_name":"InstagramUser"},"Structs/InstagramUser.html":{"name":"InstagramUser","abstract":"

      The struct containing an Instagram user.

      "},"Structs/InstagramRelationship.html":{"name":"InstagramRelationship","abstract":"

      The struct containing an Instagram relationship.

      "},"Structs/InstagramMedia.html":{"name":"InstagramMedia","abstract":"

      The struct containing an Instagram media.

      "},"Structs/InstagramComment.html":{"name":"InstagramComment","abstract":"

      The struct containing an Instagram comment.

      "},"Structs/InstagramTag.html":{"name":"InstagramTag","abstract":"

      The struct containing an Instagram tag.

      "},"Structs/InstagramLocation.html":{"name":"InstagramLocation","abstract":"

      The struct containing an Instagram location.

      "},"Enums/InstagramScope.html#/s:14SwiftInstagram0B5ScopeO5basicyA2CmF":{"name":"basic","abstract":"

      To read a user’s profile info and media.

      ","parent_name":"InstagramScope"},"Enums/InstagramScope.html#/s:14SwiftInstagram0B5ScopeO13publicContentyA2CmF":{"name":"publicContent","abstract":"

      To read any public profile info and media on a user’s behalf.

      ","parent_name":"InstagramScope"},"Enums/InstagramScope.html#/s:14SwiftInstagram0B5ScopeO12followerListyA2CmF":{"name":"followerList","abstract":"

      To read the list of followers and followed-by users.

      ","parent_name":"InstagramScope"},"Enums/InstagramScope.html#/s:14SwiftInstagram0B5ScopeO8commentsyA2CmF":{"name":"comments","abstract":"

      To post and delete comments on a user’s behalf.

      ","parent_name":"InstagramScope"},"Enums/InstagramScope.html#/s:14SwiftInstagram0B5ScopeO13relationshipsyA2CmF":{"name":"relationships","abstract":"

      To follow and unfollow accounts on a user’s behalf.

      ","parent_name":"InstagramScope"},"Enums/InstagramScope.html#/s:14SwiftInstagram0B5ScopeO5likesyA2CmF":{"name":"likes","abstract":"

      To like and unlike media on a user’s behalf.

      ","parent_name":"InstagramScope"},"Enums/InstagramScope.html#/s:14SwiftInstagram0B5ScopeO3allyA2CmF":{"name":"all","abstract":"

      To get all permissions.

      ","parent_name":"InstagramScope"},"Enums/InstagramScope.html":{"name":"InstagramScope","abstract":"

      Login permissions (scopes) currently supported by Instagram.

      "},"Classes/Instagram.html#/s:14SwiftInstagram0B0C19EmptySuccessHandlera":{"name":"EmptySuccessHandler","abstract":"

      Empty success handler.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C14SuccessHandlera":{"name":"SuccessHandler","abstract":"

      Success handler.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera":{"name":"FailureHandler","abstract":"

      Failure handler.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C6sharedACvpZ":{"name":"shared","abstract":"

      Returns a shared instance of Instagram.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C5login4from10withScopes7success7failureySo22UINavigationControllerC_SayAA0B5ScopeOGyycSgys5Error_pcSgtF":{"name":"login(from:withScopes:success:failure:)","abstract":"

      Starts an authentication process.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C6logoutSbyF":{"name":"logout()","abstract":"

      Ends the current session.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C15isAuthenticatedSbvp":{"name":"isAuthenticated","abstract":"

      Returns whether a user is currently authenticated or not.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C16storeAccessTokenySbSSF":{"name":"storeAccessToken(_:)","abstract":"

      Store your own authenticated access token so you don’t have to use the included login authentication.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C19retrieveAccessTokenSSSgyF":{"name":"retrieveAccessToken()","abstract":"

      Returns the current access token.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C8comments9fromMedia7success7failureySS_ySayAA0B7CommentVGcSgys5Error_pcSgtF":{"name":"comments(fromMedia:success:failure:)","abstract":"

      Get a list of recent comments on a media object.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C13createComment7onMedia4text7success7failureySS_SSyAA0bD0VcSgys5Error_pcSgtF":{"name":"createComment(onMedia:text:success:failure:)","abstract":"

      Create a comment on a media object.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C13deleteComment_7onMedia7success7failureySS_SSyycSgys5Error_pcSgtF":{"name":"deleteComment(_:onMedia:success:failure:)","abstract":"

      Remove a comment either on the authenticated user’s media object or authored by the authenticated user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C5likes7inMedia7success7failureySS_ySayAA0B4UserVGcSgys5Error_pcSgtF":{"name":"likes(inMedia:success:failure:)","abstract":"

      Get a list of users who have liked this media.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C4like5media7success7failureySS_yycSgys5Error_pcSgtF":{"name":"like(media:success:failure:)","abstract":"

      Set a like on this media by the currently authenticated user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C6unlike5media7success7failureySS_yycSgys5Error_pcSgtF":{"name":"unlike(media:success:failure:)","abstract":"

      Remove a like on this media by the currently authenticated user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C8location_7success7failureySS_yAA0B8LocationVySSGcSgys5Error_pcSgtF":{"name":"location(_:success:failure:)","abstract":"

      Get information about a location.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C11recentMedia11forLocation5maxId03minH07success7failureySS_SSSgAJySayAA0bD0VGcSgys5Error_pcSgtF":{"name":"recentMedia(forLocation:maxId:minId:success:failure:)","abstract":"

      Get a list of recent media objects from a given location.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C14searchLocation8latitude9longitude8distance16facebookPlacesId7success7failureySdSg_AKSiSgSSSgySayAA0bD0VySSGGcSgys5Error_pcSgtF":{"name":"searchLocation(latitude:longitude:distance:facebookPlacesId:success:failure:)","abstract":"

      Search for a location by geographic coordinate.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C14searchLocation11coordinates8distance16facebookPlacesId7success7failureySo22CLLocationCoordinate2DVSg_SiSgSSSgySayAA0bD0VySSGGcSgys5Error_pcSgtF":{"name":"searchLocation(coordinates:distance:facebookPlacesId:success:failure:)","abstract":"

      Search for a location by geographic coordinate.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C5media6withId7success7failureySS_yAA0B5MediaVcSgys5Error_pcSgtF":{"name":"media(withId:success:failure:)","abstract":"

      Get information about a media object.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C5media13withShortcode7success7failureySS_yAA0B5MediaVcSgys5Error_pcSgtF":{"name":"media(withShortcode:success:failure:)","abstract":"

      Get information about a media object.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C11searchMedia8latitude9longitude8distance7success7failureySdSg_AJSiSgySayAA0bD0VGcSgys5Error_pcSgtF":{"name":"searchMedia(latitude:longitude:distance:success:failure:)","abstract":"

      Search for recent media in a given area.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C11searchMedia11coordinates8distance7success7failureySo22CLLocationCoordinate2DVSg_SiSgySayAA0bD0VGcSgys5Error_pcSgtF":{"name":"searchMedia(coordinates:distance:success:failure:)","abstract":"

      Search for recent media in a given area.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C11userFollows7success7failureyySayAA0B4UserVGcSg_ys5Error_pcSgtF":{"name":"userFollows(success:failure:)","abstract":"

      Get the list of users this user follows.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C13userFollowers7success7failureyySayAA0B4UserVGcSg_ys5Error_pcSgtF":{"name":"userFollowers(success:failure:)","abstract":"

      Get the list of users this user is followed by.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C15userRequestedBy7success7failureyySayAA0B4UserVGcSg_ys5Error_pcSgtF":{"name":"userRequestedBy(success:failure:)","abstract":"

      List the users who have requested this user’s permission to follow.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C16userRelationship8withUser7success7failureySS_yAA0bD0VcSgys5Error_pcSgtF":{"name":"userRelationship(withUser:success:failure:)","abstract":"

      Get information about a relationship to another user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C6follow4user7success7failureySS_yAA0B12RelationshipVcSgys5Error_pcSgtF":{"name":"follow(user:success:failure:)","abstract":"

      Follows the target user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C8unfollow4user7success7failureySS_yAA0B12RelationshipVcSgys5Error_pcSgtF":{"name":"unfollow(user:success:failure:)","abstract":"

      Unfollows the target user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C14approveRequest8fromUser7success7failureySS_yAA0B12RelationshipVcSgys5Error_pcSgtF":{"name":"approveRequest(fromUser:success:failure:)","abstract":"

      Approve the target user’s request.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C13ignoreRequest8fromUser7success7failureySS_yAA0B12RelationshipVcSgys5Error_pcSgtF":{"name":"ignoreRequest(fromUser:success:failure:)","abstract":"

      Ignore the target user’s request.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C3tag_7success7failureySS_yAA0B3TagVcSgys5Error_pcSgtF":{"name":"tag(_:success:failure:)","abstract":"

      Get information about a tag object.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C11recentMedia7withTag03maxF2Id03minfH05count7success7failureySS_SSSgAKSiSgySayAA0bD0VGcSgys5Error_pcSgtF":{"name":"recentMedia(withTag:maxTagId:minTagId:count:success:failure:)","abstract":"

      Get a list of recently tagged media.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C6search3tag7success7failureySS_ySayAA0B3TagVGcSgys5Error_pcSgtF":{"name":"search(tag:success:failure:)","abstract":"

      Search for tags by name.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C4user_7success7failureySS_yAA0B4UserVcSgys5Error_pcSgtF":{"name":"user(_:success:failure:)","abstract":"

      Get information about a user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C11recentMedia8fromUser5maxId03minH05count7success7failureySS_SSSgAKSiSgySayAA0bD0VGcSgys5Error_pcSgtF":{"name":"recentMedia(fromUser:maxId:minId:count:success:failure:)","abstract":"

      Get the most recent media published by a user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C14userLikedMedia9maxLikeId5count7success7failureySSSg_SiSgySayAA0bE0VGcSgys5Error_pcSgtF":{"name":"userLikedMedia(maxLikeId:count:success:failure:)","abstract":"

      Get the list of recent media liked by the currently authenticated user.

      ","parent_name":"Instagram"},"Classes/Instagram.html#/s:14SwiftInstagram0B0C6search4user5count7success7failureySS_SiSgySayAA0B4UserVGcSgys5Error_pcSgtF":{"name":"search(user:count:success:failure:)","abstract":"

      Get a list of users matching the query.

      ","parent_name":"Instagram"},"Classes/Instagram.html":{"name":"Instagram","abstract":"

      A set of helper functions to make the Instagram API easier to use.

      "},"API.html":{"name":"API"},"Authentication.html":{"name":"Authentication"},"Models.html":{"name":"Models"},"Errors.html":{"name":"Errors"},"Other Structs.html":{"name":"Other Structures","abstract":"

      The following structures are available globally.

      "}} \ No newline at end of file diff --git a/docs/undocumented.json b/docs/undocumented.json index 56223f2..0dd28a5 100644 --- a/docs/undocumented.json +++ b/docs/undocumented.json @@ -2,5 +2,5 @@ "warnings": [ ], - "source_directory": "/Users/andergoig/Desarrollo/Xcode/SwiftInstagram" + "source_directory": "/Users/andergoig/Development/Xcode/SwiftInstagram" } \ No newline at end of file
    • + + userId + + +
      +

      The ID of the user to reference.

      +
      +
      + + success + + +
      +

      The callback called after a correct unfollow.

      -

      The callback called after an incorrect retrieval.

      +

      The callback called after an incorrect unfollow.

      -

      The callback called after a correct retrieval.

      +

      The callback called after a correct approve.

      -

      The callback called after an incorrect retrieval.

      +

      The callback called after an incorrect approve.

      -

      The callback called after a correct follow.

      +

      The callback called after a correct ignore.

      -

      The callback called after an incorrect follow.

      +

      The callback called after an incorrect ignore.

      - userId + tagName
      -

      The ID of the user to reference.

      +

      The name of the tag to reference.

      -

      The callback called after a correct unfollow.

      +

      The callback called after a correct retrieval.

      -

      The callback called after an incorrect unfollow.

      +

      The callback called after an incorrect retrieval.

      - userId + tagName
      -

      The ID of the user to reference.

      +

      The name of the tag to reference.

      +
      +
      + + maxTagId + + +
      +

      Return media after this maxTagId.

      +
      +
      + + minTagId + + +
      +

      Return media before this minTagId.

      +
      +
      + + count + + +
      +

      Count of tagged media to return.

      -

      The callback called after a correct approve.

      +

      The callback called after a correct retrieval.

      -

      The callback called after an incorrect approve.

      +

      The callback called after an incorrect retrieval.

      - userId + query
      -

      The ID of the user to reference.

      +

      A valid tag name without a leading #. (eg. snowy, nofilter)

      -

      The callback called after a correct ignore.

      +

      The callback called after a correct retrieval.

      -

      The callback called after an incorrect ignore.

      +

      The callback called after an incorrect retrieval.

      - locationId + userId
      -

      The ID of the location to reference.

      +

      The ID of the user whose information to retrieve, or self to reference the currently authenticated user.

      - locationId + userId
      -

      The ID of the location to reference.

      +

      The ID of the user whose recent media to retrieve, or self to reference the currently authenticated user.

      -

      Return media after this maxId.

      +

      Return media earlier than this maxId.

      -

      Return media before this mindId.

      +

      Return media later than this minId.

      +
      +
      + + count + + +
      +

      Count of media to return.

      - latitude - - -
      -

      Latitude of the center search coordinate. If used, longitude is required.

      -
      -
      - - longitude - - -
      -

      Longitude of the center search coordinate. If used, latitude is required.

      -
      -
      - - distance + maxLikeId
      -

      Default is 500m, max distance is 750.

      +

      Return media liked before this id.

      - facebookPlacesId + count
      -

      Returns a location mapped off of a Facebook places id. If used, coordinates is not required.

      +

      Count of media to return.

      - coordinates - - -
      -

      Latitude and longitude of the center search coordinates.

      -
      -
      - - distance + query
      -

      Default is 500m, max distance is 750.

      +

      A query string.

      - facebookPlacesId + count
      -

      Returns a location mapped off of a Facebook places id. If used, coordinates is not required.

      +

      Number of users to return.