Giter Site home page Giter Site logo

client's People

Contributors

korbeil avatar riid avatar stygiansabyss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

client's Issues

Client rework with DTO/Serializer

Use Symfony Serializer to parse data from API and create DTO for each API endpoint.
The idea is to bring a strong typed model with utility functions to be able to access all data easily.

Endpoints to update:

Resources:

ProgressionApi - DTO & Serializer

Create a data model to store ProgressionApi response and create a Serializer to make it easy to convert response to this model.

Please discuss about the model you wanna use in thread before preparing it for PR.

ProfileApi - DTO & Serializer

Create a data model to store ProfileApi response and create a Serializer to make it easy to convert response to this model.

Please discuss about the model you wanna use in thread before preparing it for PR.

Installation issue

I got this when I try to add r6api/client :

composer require r6api/client
Using version ^1.1 for r6api/client
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "4.2.*"
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for r6api/client ^1.1 -> satisfiable by r6api/client[1.1.0].
    - r6api/client 1.1.0 requires php-http/client-implementation ^1.0 -> no matching package found.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Installation failed, reverting ./composer.json to its original content.

Could not find package

[InvalidArgumentException]
Could not find package r6api/client at any version matching your PHP version 7.0.32.0

Help me!

StatisticApi - DTO & Serializer

Create a data model to store StatisticApi response and create a Serializer to make it easy to convert response to this model.
For this endpoint, we have a lot of sub-models such as Operators !!

Please discuss about the models you wanna use in thread before preparing it for PR.

New profiles endpoint

After quick retro-enginering on Rainbow 6 Stats website, I saw there is a new endpoint there: https://public-ubiservices.ubi.com/v2/users/[uuid]/profiles

He use same headers as all other endpoints.

Response contains all platforms for given users (including twitch and steam which is kinda weird but "ok")

RankApi - DTO & Serializer

Create a data model to store RankApi response and create a Serializer to make it easy to convert response to this model.

Please discuss about the model you wanna use in thread before preparing it for PR.

php-http/client-implementation fails

It looks like this package may have vanished.

> composer require php-http/client-implementation:^1.0
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package php-http/client-implementation could not be found in any version, there may be a typo in the package name.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Installation failed, reverting ./composer.json to its original content.

Statistic type missing types

Looking at the API calls the r6 site itself makes, it looks like some ops may be missing from the OPERATORPVE and PVP constants. Seems to be all year 2 and year 3 ops are missing.

Also, I don't see the r6 site calling for cazador assist kill. What is this one meant to be?

Lastly, do you know what the extra number and letters after the results map to?

      "operatorpve_death:2:4" => 73
      "operatorpve_roundlost:3:6" => 9
      "operatorpve_glaz_sniperpenetrationkill:2:4" => 36
      "operatorpve_timeplayed:3:8" => 776
      "operatorpve_kills:3:F" => 19
      "operatorpve_roundplayed:5:3" => 19
      "operatorpve_roundplayed:2:9" => 20
      "operatorpve_roundlost:3:2" => 5
      "operatorpve_buck_kill:2:6" => 62
      "operatorpve_kills:1:3" => 70
      "operatorpve_headshot:2:B" => 35

If you do, a new Type class for this could be helpful. I am happy to do a PR for you, just don't know how to figure some of this stuff out.

Thanks!

Does not replace symfony/polyfill-ctype

Hi,

One of our build processes failed because it tried to download this library as a dependency instead of symfony/polyfill-ctype. It happened because this library is marked as a replacement for Symfony's ctype polyfill lib in packagist.
The solution that helped us was just updating the composer on our deployment servers. But still, it would be better to remove the symfony/polyfill-ctype from the replace section in composer.json file.

Thanks,
Nadir.

Packagist package breaking everything that uses symfony/polyfill-ctype

I’ve got more investigation to do on this, but it appears that in Composer 1.8.0, there’s a version constraint in your dependency list that’s breaking everything else that tries to use it. It wouldn’t matter except that when Composer updates its provides lists from packagist, every single provided package gets parsed, and there’s no way to exclude r6api/client. This appears to be similar to what got fixed in #15. As soon as I get the chance I’ll post more details.

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.