Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

JaydenMaalouf/PureApex.API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PureApex.API - C# Apex Legends API

A .NET API Wrapper for the Apex Legends API Documentation is found below!

Installation

Our stable build is available from NuGet through the PureApex.API metapackage:

Getting Started

Once you have added the NuGet Package to your Project, you will need to add the using PureApex.API; to your class header. Then simply instance the ApexAPI class with your Origin Email and Password, like so:

var API = new ApexAPI("example@email.com", "password");

Then login to Origin with the LoginAsync() call:

var result = await API.LoginAsync();

The result boolean will be set to true or false depending on the login success.

Now you can easily make calls to the API!

GetUserAsync()

If you already know a user's UserId or Username, you can use the GetUserAsync() method to return an ApexUser object.

  • Username:
var user = await API.GetUserAsync("username");
  • UserId:
var user = await API.GetUserAsync(userId);

GetUsersAsync()

Same as GetUserAsync() but allows to search by generic terms.

  • This will return any users who's username starts with user:
var users = await API.GetUsersAsync("user");

GetStatsAsync()

If you're wanting to get a user's stats, you can simply use GetStatsAsync() and it will return the requested stats.

var user = await API.GetUserAsync("username");
var stats = await user.GetStatsAsync();

NOTE: THE API WILL ONLY RETURN VALID DATA FOR THE CURRENT ACTIVE LEGEND FOR THE USER

Thanks for using my wrapper ❤️ By Kanga#8041.

Please note: This API wrapper is for educational purposes only. I am not affiliated with Origin, Respawn, EA or any of their entities/affiliates.

About

A C# API Wrapper for Apex Legends

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages