A library to integrate Ebblink private image sharing capabilities into your iOS app.
Getting Started
- iOS 8+
Add the following to your Podfile:
pod 'ebblinkSDK', :git => 'https://github.com/ebbapp/ebblinkSDK'
To get a token send us email at info@fiveopenbooks.com
The userId is a parameter that identifies a unique user. You can use any string such that the identifier is unique, for example the user email.
+ (void)initWithToken:(NSString*)token andUserId:(NSString*)userId;
There are two possible processing modes:
Device
: the encryption and decryption of the image is performed on the user's device. This means that the image is uploaded to our servers fully encrypted.Server
: the encryption and decryption of the image is performed on our server. This means that during the network data transfer from our servers to the device the image is not encrypted. The processing time may vary depending on the device specifications. By default the processing mode isDevice
.
+ (void)setProcessingMode:(EBProcessingMode)processingMode;
+ (void) p3ImageUpload:(UIImage*)image duration:(NSNumber*) duration completion:(void (^)(NSString* imageId, NSString* password, NSString* publicLink, NSString* error))completionBlock;
+ (void) p3ImageView:(NSString*)imageId withPassword:(NSString*)password completion:(void (^)(UIImage* image, NSString* error))completionBlock;
+ (void) p3ImageStatus:(NSString*)imageId completion:(void (^)(NSDictionary* dictionary, NSString* error))completionBlock;
+ (void) p3ImageKill:(NSString*)imageId completion:(void (^)(BOOL success, NSString* error))completionBlock;
A story is an image that is linked to the user and available for only 24h from the moment it is uploaded. The completion block returns an imageId that is needed if one wants to manually delete the image before the 24h.
+ (void) p3ImageStoryUpload:(UIImage*)image completion:(void (^)(NSString* imageId, NSString* error))completionBlock;
Calling this method and passing a userId will return in the completion block an EBUserStory object that contains all the available stories from that user.
+ (void) p3UserStoryView:(NSString*)userId completion:(void (^)(EBUserStory *story, NSString* error))completionBlock;;
You can find our terms and conditions in the following url: