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

SphereMall Gateway iOS SDK

Official iOS SDK for integrating with SphereMall Product. Official documentation

Version 2.0.3

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.3 - May 23, 2018

2.0.2 - May 22, 2018

2.0.1 - May 10, 2018

2.0.0 - May 8, 2018

  • added grid filter

1.0.13 - Mar 30, 2018