bodsquare_sdk 0.0.7 copy "bodsquare_sdk: ^0.0.7" to clipboard
bodsquare_sdk: ^0.0.7 copied to clipboard

A wrapper around Bodsquare communication APIs. This includes APIs for communicating with customers via Whatsapp, Facebook, and Instagram.

A wrapper around the Bodsquare communication APIs.

  • Bodsquare allows for businesses to follow up with their customers from the moment they contact them until the end, regardless of the platform used. These include Whatsapp, Facebook and Instagram integrations.

Features #

  • Add your facebook, instagram and whatsapp accounts as channels.
  • Chat with customers from connected channels.

Getting started #

Add as a dependency:

bodsquare_sdk: latest_version

ANDROID SETUP:

Add the folllowing to the android > app > src > main > AndroidManifest.xml file.

<intent-filter android:autoVerify="true">
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data
                android:scheme="bodsquaresocial"
                android:host="social-page.bodsquare.com"/>
               
            </intent-filter>

IOS SETUP:

Add the following to the Info.plist file.

<key>CFBundleURLTypes</key>
  <array>
      <dict>
          <key>CFBundleTypeRole</key>
          <string>Editor</string>
          <key>CFBundleURLName</key>
          <string>social-page.bodsquare.com</string>
          <key>CFBundleURLSchemes</key>
          <array>
              <string>bodsquaresocial</string>
          </array>
      </dict>
  </array>

<key>NSCameraUsageDescription</key>
	<string>camera</string>
	<!-- Permission options for the `microphone` group -->
	<key>NSMicrophoneUsageDescription</key>
	<string>microphone</string>
	<!-- Permission options for the `photos` group -->
	<key>NSPhotoLibraryUsageDescription</key>
	<string>photos</string>

Usage #

Import into your code:

import 'package:bodsquare_sdk/bodsquare_sdk.dart';

And use in any place within a widget to call the bodsquare_Sdk

final BodsquareSdk bodsquareSdk = BodsquareSdk();

ElevatedButton(
                onPressed: (() {
                  bodsquareSdk.getChannels(
                      context: context,
                      email: 'youremail@email.com',
                      userName: 'username');
                }),


Fields Type Description
context BuildContext A handle to the location of a widget in the widget tree. Required.
email String Use for the initializing a user in the sdk. Required.
userName String Also use for initializing and to log in a user. Required.
useProduction bool Bodsquare_sdk provides a default test environment when an app is yet to be release and uses the production environment on release builds. Set this to true to test using the production environment. Defaults to false.