Skip to content

A Swift Package for RetroAchivements API which can be used in Swift projects.

Notifications You must be signed in to change notification settings

SaiBalaji-PSS/SwiftArcade

Repository files navigation

SwiftArcade

logo

A Swift Package for RetroAchievements API to use in Swift projects

Requirements

Examples

Get list of consoles

        SwiftArcade.Shared.getConsoleList(UserName: USER_NAME_HERE, KEY: API_KEY_HERE) { error, console in
          if let error{
              print(error)
          }
          if let console{
              
              print(console.first?.Name)
          }
      }

Get recent games for a given user

          SwiftArcade.Shared.getRecentGames(User: YOUR_USER_NAME, KEY: "API_KEY_HERE", OtherUser: OTHER_USER_NAME) { error, recents in
          
      }

Get game list for a given console id

        SwiftArcade.Shared.getGamesList(UserName: "USER_NAME_HERE", KEY: 
        "API_KEY_HERE", ConsoleID: 1) { error, gamelist in
          
      }

Get game info and trophies

        SwiftArcade.Shared.getGameInfoAndTropies(UserName: "USER_NAME_HERE", KEY: "API_KEY_HERE", GameID: Int) { error, games in
          
      }

Get top ten users

        SwiftArcade.Shared.getTopTenUsers(UserName: "USER_NAME_HERE", KEY: "API_KEY_HERE") { error, place in
          if let place{
              print(place.first)
          }
      }

About

A Swift Package for RetroAchivements API which can be used in Swift projects.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages