Giter Site home page Giter Site logo

byte-api's Introduction

Languages & Frameworks

RustLang  Python  TypeScript  JavaScript  Java  Lua  C++  HTML  CSS 
Docker  React  ExpressJS  NodeJS  MongoDB  SQL  Tokio 

About :

Hiya! I'm a Full Stack, primarily Backend Developer.
  • If you came here searching if this username exists, it does! And no, it's not for sale ❤️
  • 📝 If you're looking to contact me, I'm available on
  • ⚡ I specialize in API Development, Mobile-App Reverse Engineering, & request based web automation for the Sneaker & Reselling community, having experience bypassing SSL Pinning, Akamai, PerimeterX. If you're interested in any of these services, feel free to message me on a platform above for a price quote.

Dev Stats :

Github Stats

Wakatime Stats

Top Languages Used

Pay Me :

Buy Me A Coffee

byte-api's People

Contributors

dependabot[bot] avatar furry avatar ifiremonkey avatar

Stargazers

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

Watchers

 avatar  avatar

byte-api's Issues

JSDocs & Github Pages not working.

I set up the barebones JSDocs with Github Pages, but navigation isn't working for some reason.

CLI to build docs:
jsdoc src -r -d docs -t node_modules/docdash

Add Set Avatar ability

Putting this in http.js will do it:

     /**
     * To change the Client's account avatar.
     * @param {imageUrlResolvable} uri The resolvable URL of the image
     ** @returns {promise<object>} The HTTP response.
     * @example
     * .setAvatar("https://cdn.pixabay.com/photo/2015/10/05/22/37/blank-profile-picture-973460_960_720.png")
     * .then((res) => console.log(res))
     * 
     * @example
     * .setAvatar("./image.jpeg")
     * .then((res) => console.log(res))
     */
    setAvatar(uri) {
      return new Promise(async (resolve, reject) => {

          let firstReq = await this.baseRequest("upload", "POST", "json", { "contentType": "image/jpeg" })
          .catch((err) => reject(err))

          let buffer = await resolveSource.resolveBufferFromURL(uri)
          .catch((err) => reject(err))

          let secondReq = await this.baseRequest(firstReq.data.uploadURL, "PUT", "raw", { headers:{"Content-Type": "image/jpeg"}, body: buffer}, { override: true })
          .catch((err) => reject(err))

          let thirdReq = await this.baseRequest('account/me', 'PUT', 'json', {
              avatarUploadID: firstReq.data.uploadID
          })
          .catch((err) => reject(err))
          .then((res) => resolve(res))


      })
  }

TypeScript Rewrite

TypeScript Rewrite

Goals

  • Port the entire code base to a strongly-typed typescript environment
  • Add dynamic response processing to insure a valid typed object always gets returned by API calls
  • Implement a better request manager in it's own class
  • Add descriptive JS Docs with code examples
  • Insure there are no major function changes to not break current code use

I will be pushing constant updates to this library, the NPM package will not update until the port is complete and has been tested extensively.

Feature Request: Upload & Posting to Profile

Description: The ability to upload and post to profile.

Findings: So far I've found you can post to /upload to get the cdn info.

// using this as the body, headers are the standard application/json content-type and auth with token
{
    contentType: 'video/mp4',
    file: file // base64 encoded is how i sent it successfully
}

// this returns:
{
  uploadID: 'String ID redacted',
  uploadURL: 'String google cdn link redacted'
}

I've also found posting to /upload with only the payload being contentType: 'video/mp4' or 'image/jpeg' returns cdn stuff.

I think the actual post endpoint may be /post

This is the only helpful thing I've found so far: https://github.com/MixV2/ByteSharp/blob/master/ByteSharp/Models/ByteUpload.cs

According to this, videos must be under 5MB.

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.