ojp-sdk
    Preparing search index...

    Class SDK<V>

    SDK main class

    Instances are created via static methods below. Direct construction is intentionally disabled.

    • OJP.SDK.create( ... ) for OJPv2 instance
    • OJP.SDK.v1( ... ) for legacy (OJPv1) instance

    Type Parameters

    Index

    Initialization

    Properties

    Initialization

    • Create OJPv2 SDK

      Parameters

      • requestorRef: string

        string used for sending <RequestorRef> to OJP backend, be careful not to use a too much generic value

      • httpConfig: HTTPConfig
      • language: Language = 'en'

      Returns SDK<"2.0">

    • Create OJPv1 SDK

      Parameters

      • requestorRef: string

        string used for sending RequestorRef to OJP backend, be careful not to use a too much generic value

      • httpConfig: HTTPConfig
      • language: Language = 'en'

      Returns SDK<"1.0">

    Properties

    httpConfig: HTTPConfig
    language: Language
    requestorRef: string
    version: OJP_VERSION