Giter Club home page Giter Club logo

fortnitedotnet's Introduction

This project is currently not maintained, and severely outdated!

Banner

FortniteDotNet is a simple and easy-to-use library used for interacting with Fortnite's HTTP and XMPP services. Features include interactions with parties and friends, general API data, and more.

NuGet Release NuGet Downloads GitHub Issues GitHub Forks GitHub Stars GitHub License

Installation

You can find FortniteDotNet on any NuGet package manager. Alternatively, you can use the dotnet CLI.

dotnet add package FortniteDotNet

Features

Below is a list of some of the features FortniteDotNet includes.

  • Party and XMPP services
  • Friends services, including legacy endpoints
  • Fortnite services
    • Cloudstorage (system/user)
    • Storefront requests (shop)
    • Profile-related operations (QueryProfile, etc.)
  • Dependency injection
  • Asynchronous codebase

Usage

FortniteDotNet uses dependency injection. There are two ways to access different services within FortniteDotNet. Please ensure the package Microsoft.Extensions.DependencyInjection is installed.

MAUI app example (MauiProgram.cs):

First:

// Add the services upon creation
public static MauiApp CreateMauiApp()
{
    var builder = MauiApp.CreateBuilder().UseMauiApp<...>();    
    builder.Services.AddFortniteApi();
    
    ...
    
    return builder.Build();
}

then...

// Get a service through a constructor
private readonly IAccountService _accountService;

public ExampleClass(IAccountService accountService)
{
    _accountService = accountService;
}

or...

// Inject a service into a component
@inject IAccountService _accountService;

MVC app example (Startup.cs):

First:

public void ConfigureServices(IServiceCollection services)
{
    ...
    
    services.AddFortniteApi();
}

then...

// Get a service through a constructor
private readonly IAccountService _accountService;

public ExampleClass(IAccountService accountService)
{
    _accountService = accountService;
}

.NET app example:

var services = new ServiceCollection()
    .AddFortniteDotNet()
    .BuildServiceProvider();

...

// Get a service
var accountService = services.GetService<IAccountService>();

Example

The rewrite is yet to be completed, so I have not provided an example yet. You can see tips on usage above.

I've commented the example code so you can have some sort of understanding of what it's doing. Please also note that this is just an example, and there's plenty more that you can do with FortniteDotNet.

// TODO

Contributions

If you wish to contribute to FortniteDotNet, you can do so by cloning this repository, making your changes, and submitting a pull request. If I deem the pull request inappropriate, I will deny it.

FortniteDotNet is not entirely finished, especially due to the lack of MCP commands, so any contributions are greatly appreciated. The code structure is organised so should be easy to understand, however if you struggle, please don't hesitate to get in touch.

Contact

For any queries regarding FortniteDotNet, you can open an issue or a pull request, and I will happily reply to the thread.

fortnitedotnet's People

Contributors

callumboynton avatar beat-yt avatar

Stargazers

Tara avatar  avatar  avatar John Gage Faulkner avatar  avatar Vee avatar shady avatar krisp avatar astaliya avatar Jure Jurij Grom avatar  avatar Oli avatar  avatar Kyiro avatar  avatar Immanuel Daviel A. Garcia avatar  avatar Christopher avatar im2rnado avatar Kian avatar Junction avatar

Watchers

 avatar

fortnitedotnet's Issues

FortniteService

FortniteService hasn't been finished yet, will finish at some point.

If anyone has any suggestions, please let me know here so I can keep it all in one place.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.