Skip to content

codewhisper/eye-fi-server

Repository files navigation

eye-fi-server

Provides an Eye-Fi server for objective-c applications

Usage

  1. To add the library to your project with CocoaPods, add this line to your Podfile:

    pod 'CWEyeFiServer', :git => 'https://github.com/codewhisper/eye-fi-server.git'
    
  2. Import CWEyeFiServer.h, create server object and start. Make sure to add your own upload key, usually you can find it in ~/Library/Eye-Fi/Settings.xml

    #import "CWEyeFiServer.h"
    [...]
    CWEyeFiServer *_eyeFiServer = [[CWEyeFiServer alloc] initWithUploadKey:@"112233"];
    NSError *error;
    [_eyeFiServer start:&error];
  3. Add observer for file updates notifications

    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(fileStatusNotification:) name:CWNotificationFileStatus object:nil];
  • Check the Example directory for a working example

Thanks

The code was heavily influenced by PhotoPad, thanks!

About

Provides an Eye-Fi server for objective-c applications

Resources

License

Stars

Watchers

Forks

Packages

No packages published