Socket
Socket
Sign inDemoInstall

mslapi-js-sdk

Package Overview
Dependencies
9
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mslapi-js-sdk

MLS API SDK for JavaScript.


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

MLS API SDK for JavaScript

Develop and deploy applications, mobile and web, with popular JavaScript Frameworks using MLS API SDK for JavaScript.

Install

yarn add mslapi-js-sdk
# or
npm i mslapi-js-sdk

Example of Usage

import api from 'mslapi-js-sdk'
import axios from 'axios'

// MODULE USED
// - assists
const { assists, setAxiosInstance } = api

// setAxiosInstance(axios.create({
//     baseURL: 'https://mlssoccerapi.com',
//     timeout: 0
// }))

await api.authentication.login({ username: <username>, password: <password> })

assists.getAll().then(res => {
    console.log(res)
})

assists.getByID('xxx').then(res => {
    console.log(res)
})

assists.add({
    league_name: 'string',
    standing: 'string',
    player_name: 'string',
    team_name: 'string',
    assists: 'string',
    tag: 'string'
}).then(res => {
    console.log(res)
})

assists.updateByID({
    id: 'string',
    league_name: 'string',
    standing: 'string',
    player_name: 'string',
    team_name: 'string',
    assists: 'string',
    tag: 'string'
}).then(res => {
    console.log(res)
})

assists.deleteByID('xxx').then(res => {
    console.log(res)
})

Available Modules

- assists
- authentication
- fixtures
- historicalData
- lasterNews
- offence
- players
- realTimeData
- standings
- teams
- topScorer

Methods

//you can save the token and use it next time
// **setToken(tokenValue)**

//get the token string
// **getToken()**

import {setToken, getToken} from 'mslapi-js-sdk';

The MLS API documentation is available here. If you need further assistance, don't hesitate to contact us.

License

This project is licensed under the BSD 3-Clause License.

(c) 2022 Moat Systems Limited.

Keywords

FAQs

Last updated on 02 Aug 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc