GithubHelp home page GithubHelp logo

dmitrydnl / bitskinsapi Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 3.0 425 KB

A wrapper for the BitSkins API, build on .NET Standard 2.0

Home Page: https://www.nuget.org/packages/BitSkinsApi/

License: MIT License

C# 100.00%
api-wrapper nuget-package bitskins steam dotnet-standard

bitskinsapi's Introduction

alt text

What is BitSkinsApi?

code quality build status

An extended wrapper for the BitSkins API. It is a NuGet Package, that build on .NET Standard 2.0. BitSkinsApi allows you to interact with your BitSkins account through methods call. You can sell/buy items, get all BitSkins market data, get your Steam inventory and more. All games available on BitSkins are supported.

Learn more about BitSkins API you can an official BitSkins website.
Learn more about NuGet.

How do I install BitSkinsApi?

nuget last release

To install the NuGet package, you can the Package Manager Console. For more information, see Package consumption overview and workflow.

  1. In Visual Studio select the Tools > NuGet Package Manager > Package Manager Console menu command.
  2. Once the console opens, check that the Default project drop-down list shows the project into which you want to install the package.
  3. Enter the command:
    Install-Package BitSkinsApi -Version 1.2.3

How do I use BitSkinsApi?

All about using BitSkinsApi you can find in documentation.

In short:

  1. Register on BitSkins website.
  2. Enable API access and two-factor authentication for your BitSkins account.
  3. Initialize your BitSkins account in code:
    BitSkinsApi.Account.AccountData.SetupAccount(ApiKey, SecretCode);
    API Key you can retrieve through the BitSkins settings page. The secret code can be found when you enable two-factor authentication for your BitSkins account.
  4. Now you can use BitSkinsApi. For example to retrieve your balance BitSkins you need execute function:
    BitSkinsApi.Balance.CurrentBalance.GetAccountBalance();

Features

  • Made on .NET Standard
  • Easy to use
  • Automatic two-factor authentication
  • Full coverage of the BitSkins General API
  • Full coverage of the BitSkins Buy Orders API
  • Full coverage of the BitSkins Crypto Deposits API

Tests

For the tests to work it is necessary to create account_data.json file in BitSkinsApiTest project, in properties this file you must set Copy to Output Directory to Copy always. After that need add in account_data.json this:

{
  "ApiKey": "Your api key",
  "SecretCode": "Your secret code"
}

After that Build Solution.

Requirements for BitSkins inventory and Steam inventory for tests:

  1. In the Steam inventory must be at least one item available for sale. This item must be from a game that supported by BitSkins. This is necessary for the SellItemTest test. If successful, you will receive a Steam trade offer, which you can decline.
  2. In BitSkins must be at least one item currently on sale by you. This is necessary for the RelistAndDelistItemTest and ModifySaleTest tests.
  3. In the BitSkins inventory must be at least one pending withdrawal item. This is necessary for the WithdrawItemTest test. If successful, you will receive a Steam trade offer, which you can decline.
  4. On BitSkins account balance must be at least $ 0.01. This is necessary for the BuyItemTest test.

Changes in the BitSkins inventory and Steam inventory after passing tests:

  1. In BitSkins, an item is bought for $ 0.01 and stays in the BitSkins inventory.
  2. In BitSkins creates a buy order for $ 0.01.
  3. There will be several trade offers on Steam, you can cancel them all.

Project requirements for use the BitSkinsApi

BitSkinsApi build on .NET Standard 2.0. To use the BitSkinsApi, version of the platform you are using must implement .NET Standart 2.0.

Learn more about .NET implementation support.

License

This project is licensed under the MIT License - see the LICENSE file for details.

bitskinsapi's People

Contributors

dmitrydnl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.