Swiftpack.co - Package - SphereMall/iOS-MS-Client

SphereMall Gateway iOS SDK

Official iOS SDK for integrating with SphereMall Product. Official documentation

Version 2.0.70

Supported microservices

  • Gateway 1.1.1
  • Products 1.1.0
  • Shop 1.0.1
  • Users 1.0.0
  • Grapher 1.0.0

Installation

You can install the package manually or by adding it to your Podfile:

pod 'iOS-MS-Client'

Instantiating the SDK Client:

Pass in the configuration to the client:

    var client = SMClient(gatewayUrl: "API_GATEWAY_URL",
                          clientId: "API_CLIENT_ID",
                          secretKey: "API_SECRET_KEY")
                          

    // Get all entity items
    client.products.all { (products, error) in
        print(products)
    }
    
    // Get entity items by predicate
    let predicate = Predicate(field: "title", op: .equal, value: "Name of product")
    client.products.filter(predicate:predicate).all { (products, error) in
        print(products)
    }

Github

link
Stars: 0
Help us keep the lights on

Dependencies

Used By

Total: 0

Releases

2.0.70 - Nov 8, 2018

2.0.69 - Nov 8, 2018

2.0.68 - Nov 6, 2018

2.0.67 - Nov 5, 2018

2.0.66 - Oct 17, 2018