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.

Libraries

conversations/views/active_conversation_chat
conversations/views/active_conversations
linking/models/add_facebook_or_instagram_request
linking/models/add_social_media_response
helpers/add_to_list_bottomsheet
linking/models/add_twitter_channel_request
linking/models/addTwitterRequest
conversations/widgets/attachments_bottomsheet
conversations/views/audio_player_preview
conversations/views/audio_player_view
conversations/views/audio_recorder_page
conversations/models/block_and_unblock_contact_request/block_and_unblock_contact_request
conversations/widgets/block_user_bottomsheet
conversations/widgets/block_user_success_bottomsheet
bodsquare_sdk
helpers/channel_helper
linking/models/channels_dummy_data
linking/models/channels_model
helpers/clipboard_service
conversations/models/close_conversation/close_conversation_request
conversations/models/close_conversation/close_conversation_response
conversations/widgets/close_or_delete_chat_bottomsheet
conversations/views/closed_conversations
linking/views/connected_accounts_view
conversations/models/get_all_conversations/contact
conversations/repository/conversation_client
conversations/models/conversation_model/conversation_v1/conversation_data
conversations/models/conversation_model/conversation_v1/conversation_message
conversations/models/conversation_model/conversation_message
conversations/models/conversation_model/conversation_model
conversations/models/conversation_model/conversation_v1/conversation_model
conversations/repository/conversation_repository
conversations/controllers/conversations_controller
conversations/models/conversations_model
helpers/conversations_service
conversations/views/conversations_view
helpers/websocket_updated_conversation/data
conversations/models/file_upload_response/data
helpers/websocket_new_message/data
helpers/date_time_extension
linking/models/get_whatsapp_response/datum
conversations/models/delete_conversation_response/delete_conversation_response
conversations/widgets/delete_conversation_warning
conversations/models/delete_message_response/delete_message_response
linking/models/delete_social_media_response
linking/views/disconnect_account_view
linking/views/disconnect_insta_or_fb_page
linking/models/facebook_or_instagram_data
helpers/file_picker_service
conversations/views/file_preview_page
conversations/models/file_upload_response/file_upload_response
helpers/font_styles
conversations/models/get_all_conversations/get_all_conversations
conversations/models/get_all_conversations/get_all_conversations_v1/get_all_conversations
linking/models/get_facebook_response
linking/models/get_instagram_response
linking/models/get_socia_media_connection_request
linking/models/get_social_account/get_social_account
helpers/get_social_account_data
linking/models/get_social_media_connection_response
linking/models/get_twitter_response
linking/models/get_whatsapp_connection_request/get_whatsapp_connection_request
linking/models/get_whatsapp_connection_response/get_whatsapp_connection_response
linking/models/get_whatsapp_response/get_whatsapp_response
linking/views/initial_linking_view
conversations/views/insta_story
linking/repository/linking_client
linking/views/linking_connect_view
linking/views/linking_connect_view_mobile
linking/views/linking_connect_view_none
linking/views/linking_connect_view_web
linking/controllers/linking_controller
linking/repository/linking_repository
linking/views/linking_view
helpers/loading_helper
helpers/loading_service
linking/models/login_user_request/login_user_request
linking/models/login_user_response/login_user_response
helpers/my_phone_form_field
helpers/my_phone_form_field_web
conversations/views/nothin
linking/models/page_id_response
conversations/views/pending_conversations
linking/repository/public_key_holder
r.g
conversations/models/report_contact_request/report_contact_request
conversations/widgets/report_conversation_bottomsheet
conversations/widgets/report_conversation_detail_bottomsheet
conversations/models/report_or_block_user_response/report_conversation_request
conversations/models/report_or_block_user_response/report_or_block_user_response
conversations/models/report_or_block_user_response/report_or_block_user_respponse/report_or_block_user_respponse
conversations/widgets/report_received_bottomsheet
conversations/models/search_conversation/search_conversation
conversations/models/search_conversation/search_conversation_datum
conversations/models/search_conversation/search_conversation_request
linking/views/select_another_channel_bottomsheet
linking/views/select_channel_bottomsheet
conversations/models/conversation_model/send_conversation_request
conversations/models/send_message_request/send_message_request
conversations/models/conversation_model/single_conversation_data
helpers/snackbar_service
conversations/models/conversation_model/social_account
linking/views/social_media_connect_webview_view
conversations/models/socket_model
helpers/socketso
helpers/storage_service
helpers/swipe_to_dismiss_widget
helpers/token_check_interceptor
linking/models/twitter_data
conversations/widgets/unblock_user_bottomsheet
conversations/models/unsent_messages_model
conversations/views/video_preview_page
conversations/views/view_attachment_page
conversations/views/view_attachment_page_web
conversations/views/view_video_page
helpers/websocket_new_message/websocket_new_message
helpers/websocket_service
helpers/websocket_updated_conversation/websocket_updated_conversation
conversations/widgets/widgets