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

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