Skip to content

BVConversations

Tim Kelly edited this page Dec 18, 2015 · 4 revisions

Summary

This page describes the minimum BVSDK configuration in your iOS project so you can being to use the Conversations API in your aplications. A more in-depth, step-by-step tutorial is provided in BVConversations Tutorial.

Configure the BVConversations Module:

Objective-C

Include the following header in your project:

#include <BVSDK/BVSDK.h>

Then add the following to your AppDelegate's didFinishLaunchingWithOptions function.

[BVSDKManager sharedManager].staging = YES; // set to NO for production!
[BVSDKManager sharedManager].clientId = @"YOUR_CLIENT_ID";
[BVSDKManager sharedManager].apiKeyConversations = @"YOUR_CONVERSATIONS_API_KEY";
[[BVSDKManager sharedManager] setLogLevel:BVLogLevelError]; // Default is BVLogLevelError

Swift

Add the following to your Objective-C Bridging Header:

#include <BVSDK/BVSDK.h>

Then add the following to your AppDelegate's didFinishLaunchingWithOptions function.

BVSDKManager.sharedManager().staging = true  // Set to false for production!
BVSDKManager.sharedManager().clientId = "YOUR_CLIENT_ID"
BVSDKManager.sharedManager().apiKeyConversations = "YOUR_CONVERSATIONS_API_KEY"
BVSDKManager.sharedManager().setLogLevel(BVLogLevel.Error) // Default level is Error

Your app is not configured to use the Conversations API for retrieving and posting product review content!

Clone this wiki locally