Latest 0.1.1
Homepage https://github.com/Fitzafful/AudiomackSwiftLibrary
License MIT
Platforms ios 8.0
Authors

Version
License
Platform

Documentation

Access the full API documentation here.

Getting Started as on Getting Started

  • Request an API key on the Contact Us page
  • The API key and associated secret will be used to identify your application when making requests to the API
  • All requests must be signed using the oAuth standard
  • Send any API support questions to [email protected]

Requirements

  • iOS 8.0+
  • Xcode 10+
  • Swift 4.0+

Installation

AudiomackSwiftLibrary is available through CocoaPods. To integrate AudiomackSwiftLibrary into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!

target '<Your Target Name>' do
pod 'AudiomackSwiftLibrary', '~> 4.7'
end

Then, run the following command:

$ pod install

Basic Usage

Audiomack only supports Oauth 1.0. To initialize and use AudiomackSwiftLibrary,

import AudiomackSwiftLibrary

let client = AudiomackClient(consumerKey: "YOUR_CONSUMER_KEY", consumerSecret: "YOUR_CONSUMER_SECRET")

//TO GET ARTIST DETAILS
client.getArtistDetails(slug: "eminem") { (result) in
    switch result{
    case let .success(response):
        print(response)
        //response - AudiomackUser Object
    case let .failure(error):
        print("error (error.localizedDescription)")
        if (error.audiomackError != nil) {
            print(error.audiomackError)
        }
    }
}

//TO GET MUSIC DETAILS

client.getMusic(id: "2077853") { (result) in
    switch result{
    case let .success(response):
        print(response)
        //response - AudiomackMusic Object
    case let .failure(error):
        print("error (error.localizedDescription)")
        if (error.audiomackError != nil) {
            print(error.audiomackError)
        }
    }
}

// TO GET ARTIST UPLOADS

client.getArtistUploads(slug: "eminem") { (result) in
    switch result{
    case let .success(response):
        print(response)
    case let .failure(error):
        print("error (error.localizedDescription)")
        if (error.audiomackError != nil) {
            print(error.audiomackError!.message)
        }
    }
}

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Features

Unauthenticated Requests

Music

  • [X] Get Music Details
  • [X] Get Most Recent Music
  • [X] Get Genre-specific Most Recent Music
  • [X] Get Trending Music
  • [X] Get Genre-specific Trending Music
  • [X] Flag Unplayable Track
  • [X] Play Track

    Artists

  • [X] Get Artist Details
  • [X] Get Artist Uploads
  • [X] Get Artist Favorites
  • [X] Search Artist Favorites
  • [X] Get Artist Playlists
  • [X] Get Artist Following / Followers
  • [X] Get Artist Feed

    Playlists

  • [X] Get Playlist Details
  • [X] Get Trending Playlists
  • [X] Get Genre-specific Trending Playlists

    Charts

  • [X] Get Chart Tracks
  • [X] Get Gender Specific Chart Tracks

    Search

  • [X] Search Song / Artist / Playlist / Album
  • [X] Search Autosuggest

Authenticated Requests

Music

  • [ ] Favorite / Unfavorite a song / album
  • [ ] Repost / Unrepost a song / album

    Artists

  • [ ] Follow / Unfollow an artist

    Playlists

  • [ ] Create playlist
  • [ ] Edit playlist
  • [ ] Delete playlist
  • [ ] Add song(s) to playlist
  • [ ] Remove song from playlist
  • [ ] Favorite / Unfavorite playlist

    User

  • [ ] Register user
  • [ ] Get User Details
  • [ ] Forgot Password
  • [ ] Get User Playlists
  • [ ] Get User Uploads
  • [ ] Get User Favorites
  • [ ] Get User Notifications

Not Supported calls in AudiomackSwiftLibrary

  • Getting Artist Pinned Content
  • Marking User Notifications as Seen
  • Getting Aggregations Lists for Notifications
  • Getting list of activities for an Aggregation

Author

Fitzafful, [email protected]

License

AudiomackSwiftLibrary is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "AudiomackSwiftLibrary",
    "version": "0.1.1",
    "summary": "A wrapper library for Audiomacks API on iOS built in Swift",
    "description": "A wrapper library for Audiomack`s API on iOS built in Swift.",
    "homepage": "https://github.com/Fitzafful/AudiomackSwiftLibrary",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Fitzafful": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Fitzafful/AudiomackSwiftLibrary.git",
        "tag": "0.1.1"
    },
    "swift_version": "4.0",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "AudiomackSwiftLibrary/Classes/**/*"
}

Pin It on Pinterest

Share This