Permalink
Browse files

adding business and sharing api's

adding utility functions and sample code
  • Loading branch information...
1 parent 327a961 commit d4b29af328fcdd9905be791d3139c1fdec2404fd mustafa committed Nov 28, 2012
Showing with 8,647 additions and 5,492 deletions.
  1. +18 −0 CHANGES.md
  2. +9 −4 README.md
  3. BIN SampleApp/Resources/Images/evernote_logo_4c-sm.png
  4. +59 −6 SampleApp/en.lproj/iPad.storyboard
  5. +91 −10 SampleApp/en.lproj/iPhone.storyboard
  6. +6 −0 SampleApp/iPadViewController.h
  7. +82 −0 SampleApp/iPadViewController.m
  8. +9 −0 SampleApp/iPhoneViewController.h
  9. +112 −4 SampleApp/iPhoneViewController.m
  10. +78 −0 evernote-sdk-ios.xcodeproj/project.pbxproj
  11. +2 −1 evernote-sdk-ios/3rdParty/Thrift/transport/THTTPClient.m
  12. +24 −8 evernote-sdk-ios/EDAM/EDAMLimits.h
  13. +99 −35 evernote-sdk-ios/EDAM/EDAMLimits.m
  14. +54 −88 evernote-sdk-ios/EDAM/EDAMNoteStore.h
  15. +914 −1,986 evernote-sdk-ios/EDAM/EDAMNoteStore.m
  16. +456 −114 evernote-sdk-ios/EDAM/EDAMTypes.h
  17. +3,050 −1,150 evernote-sdk-ios/EDAM/EDAMTypes.m
  18. +18 −108 evernote-sdk-ios/EDAM/EDAMUserStore.h
  19. +2,455 −1,728 evernote-sdk-ios/EDAM/EDAMUserStore.m
  20. +76 −0 evernote-sdk-ios/EvernoteNoteStore+Extras.h
  21. +161 −0 evernote-sdk-ios/EvernoteNoteStore+Extras.m
  22. +9 −8 evernote-sdk-ios/EvernoteNoteStore.h
  23. +204 −165 evernote-sdk-ios/EvernoteNoteStore.m
  24. +2 −0 evernote-sdk-ios/EvernoteSDK.h
  25. +16 −0 evernote-sdk-ios/EvernoteSession.h
  26. +90 −7 evernote-sdk-ios/EvernoteSession.m
  27. +38 −0 evernote-sdk-ios/EvernoteUserStore+Extras.h
  28. +46 −0 evernote-sdk-ios/EvernoteUserStore+Extras.m
  29. +2 −0 evernote-sdk-ios/EvernoteUserStore.h
  30. +18 −10 evernote-sdk-ios/EvernoteUserStore.m
  31. +38 −0 evernote-sdk-ios/Utilities/ENMLUtility.h
  32. +53 −0 evernote-sdk-ios/Utilities/ENMLUtility.m
  33. +45 −0 evernote-sdk-ios/Utilities/NSData+EvernoteSDK.h
  34. +59 −0 evernote-sdk-ios/Utilities/NSData+EvernoteSDK.m
  35. +46 −0 evernote-sdk-ios/Utilities/NSDate+EDAMAdditions.h
  36. +51 −0 evernote-sdk-ios/Utilities/NSDate+EDAMAdditions.m
  37. +23 −22 evernote-sdk-ios/internal/ENAPI.h
  38. +24 −19 evernote-sdk-ios/internal/ENAPI.m
  39. +31 −7 evernote-sdk-ios/internal/ENConstants.h
  40. +30 −7 evernote-sdk-ios/internal/ENConstants.m
  41. +8 −0 evernote-sdk-ios/internal/ENCredentialStore.h
  42. +15 −0 evernote-sdk-ios/internal/ENCredentialStore.m
  43. +26 −5 evernote-sdk-ios/internal/Resources/en.lproj/Localizable.strings
View
@@ -1,3 +1,21 @@
+= 0.2.3 / 2012-12-07
+
+* Added support for Evernote Business
+ * Added [UserStore.authenticateToBusiness](http://dev.evernote.com/documentation/reference/UserStore.html#Fn_UserStore_authenticateToBusiness)
+ * Added BusinessNotebook and contact to [Notebook](http://dev.evernote.com/documentation/reference/Types.html#Struct_Notebook)
+ * Added businessId, businessName and businessRole to [User.accounting](http://dev.evernote.com/documentation/reference/Types.html#Struct_Accounting)
+* Added NoteFilter to [RelatedQuery](http://dev.evernote.com/documentation/reference/NoteStore.html#Struct_RelatedQuery) to allow relatedness searches to be filtered
+* Changed the way that sharing permissions are represented on a [SharedNotebook](http://dev.evernote.com/documentation/reference/Types.html#Struct_SharedNotebook)
+ * Deprecated notebookModifiable and requireLogin
+ * Added privilege and allowPreview
+* Added NotebookRestrictions to [Notebook](http://dev.evernote.com/documentation/reference/Types.html#Struct_Notebook) to allow clients to more easily determined the operations that they can perform in a given shared notebook.
+* Moved [PremiumInfo](http://dev.evernote.com/documentation/reference/Types.html#Struct_PremiumInfo) and [SponsoredGroupRole](http://dev.evernote.com/documentation/reference/Types.html#Enum_SponsoredGroupRole) from the userstore package to the types package.
+* Removed all advertising functions and structures
+* Removed the previously deprecated NoteStore.getAccountSize function
+* Added extra utility functions to make it easier to use Business api's and access shared notes.
+* Added utility functions and sample code to create a photo note.
+* Updated sample app for Business and shared notes.
+
= 0.2.2 / 2012-11-20
* Added bootstrapping to the SDK. The SDK now supports the Yinxiang Biji service.
View
@@ -31,10 +31,15 @@ evernote-sdk-ios depends on Security.framework, so you'll need to add that to an
### Modify your AppDelegate
-First you set up the shared EvernoteSession, configuring it with your consumer key and secret. Do something like this in your AppDelegate's application:didFinishLaunchingWithOptions: method.
-The SDK now supports the Yinxiang Biji service. To support both, set the service to EVERNOTE_SERVICE_BOTH.
-To support Yinxiang Biji only, change 'service' to EVERNOTE_SERVICE_YINXIANG and 'EVERNOTE_HOST' to 'app.yinxiang.com'.
-To support international only, change 'service' to EVERNOTE_SERVICE_INTERNATIONAL and 'EVERNOTE_HOST' to 'www.evernote.com'.
+First you set up the shared EvernoteSession, configuring it with your consumer key and secret.
+
+The SDK now supports the Yinxiang Biji service.
+
+- To support both services, set the service to EVERNOTE_SERVICE_BOTH.
+- To support Yinxiang Biji only, change 'service' to EVERNOTE_SERVICE_YINXIANG and 'EVERNOTE_HOST' to 'app.yinxiang.com'.
+- To support international only, change 'service' to EVERNOTE_SERVICE_INTERNATIONAL and 'EVERNOTE_HOST' to 'www.evernote.com'.
+
+Do something like this in your AppDelegate's application:didFinishLaunchingWithOptions: method.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -1,15 +1,13 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="1.1" toolsVersion="2182" systemVersion="11E53" targetRuntime="iOS.CocoaTouch.iPad" propertyAccessControl="none" initialViewController="8Fh-DE-MR7">
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="2.0" toolsVersion="2844" systemVersion="12C60" targetRuntime="iOS.CocoaTouch.iPad" propertyAccessControl="none" initialViewController="8Fh-DE-MR7">
<dependencies>
- <deployment defaultVersion="1296" identifier="iOS"/>
- <development defaultVersion="4200" identifier="xcode"/>
- <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="1181"/>
+ <deployment defaultVersion="1536" identifier="iOS"/>
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="1930"/>
</dependencies>
<scenes>
<!--I Pad View Controller-->
<scene sceneID="SUm-ZI-vnh">
<objects>
- <placeholder placeholderIdentifier="IBFirstResponder" id="a69-l1-EQJ" userLabel="First Responder" sceneMemberID="firstResponder"/>
<viewController id="8Fh-DE-MR7" customClass="iPadViewController" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="WiM-na-RgE">
<rect key="frame" x="0.0" y="20" width="768" height="1004"/>
@@ -72,6 +70,51 @@
<action selector="listNotebooks:" destination="8Fh-DE-MR7" eventType="touchUpInside" id="AQa-em-zLi"/>
</connections>
</button>
+ <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="FMw-Zi-UeF">
+ <rect key="frame" x="466" y="782" width="133" height="37"/>
+ <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+ <fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
+ <state key="normal" title="List Business">
+ <color key="titleColor" red="0.19607843459999999" green="0.30980393290000002" blue="0.52156865600000002" alpha="1" colorSpace="calibratedRGB"/>
+ <color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
+ </state>
+ <state key="highlighted">
+ <color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
+ </state>
+ <connections>
+ <action selector="listBusinessNotebooks:" destination="8Fh-DE-MR7" eventType="touchUpInside" id="R2c-8a-EVA"/>
+ </connections>
+ </button>
+ <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="qYB-E1-EPB">
+ <rect key="frame" x="319" y="778" width="133" height="44"/>
+ <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+ <fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
+ <state key="normal" title="Shared Notes">
+ <color key="titleColor" red="0.19607843459999999" green="0.30980393290000002" blue="0.52156865600000002" alpha="1" colorSpace="calibratedRGB"/>
+ <color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
+ </state>
+ <state key="highlighted">
+ <color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
+ </state>
+ <connections>
+ <action selector="listSharedNotes:" destination="8Fh-DE-MR7" eventType="touchUpInside" id="tPz-vK-iyr"/>
+ </connections>
+ </button>
+ <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="rv0-3k-YVI">
+ <rect key="frame" x="160" y="779" width="153" height="44"/>
+ <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+ <fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
+ <state key="normal" title="Create photo note">
+ <color key="titleColor" red="0.19607843459999999" green="0.30980393290000002" blue="0.52156865600000002" alpha="1" colorSpace="calibratedRGB"/>
+ <color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
+ </state>
+ <state key="highlighted">
+ <color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
+ </state>
+ <connections>
+ <action selector="createPhotoNote:" destination="8Fh-DE-MR7" eventType="touchUpInside" id="va4-lf-g6W"/>
+ </connections>
+ </button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="xfd-Tt-EsV">
<rect key="frame" x="319" y="730" width="133" height="37"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
@@ -88,7 +131,7 @@
</connections>
</button>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="Authenticate, then list notebooks" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="10" id="buC-zp-kNz">
- <rect key="frame" x="259" y="806" width="251" height="21"/>
+ <rect key="frame" x="259" y="908" width="251" height="21"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
@@ -99,11 +142,15 @@
</view>
<connections>
<outlet property="authenticateButton" destination="S4Z-RV-NoF" id="gNo-v8-pvU"/>
+ <outlet property="listBusinessButton" destination="FMw-Zi-UeF" id="J5N-BG-q2m"/>
<outlet property="listNotebooksButton" destination="Un6-xb-xwa" id="cbG-Mb-iQa"/>
<outlet property="logoutButton" destination="xfd-Tt-EsV" id="yqo-iI-tuC"/>
+ <outlet property="photoNoteButton" destination="rv0-3k-YVI" id="3cs-9v-flT"/>
+ <outlet property="sharedNotesButton" destination="qYB-E1-EPB" id="j4Q-fD-enD"/>
<outlet property="tableView" destination="zQ8-8C-KAm" id="W5h-Cg-2ij"/>
</connections>
</viewController>
+ <placeholder placeholderIdentifier="IBFirstResponder" id="a69-l1-EQJ" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-742" y="-531"/>
</scene>
@@ -113,11 +160,17 @@
<source key="sourceIdentifier" type="project" relativePath="./Classes/iPadViewController.h"/>
<relationships>
<relationship kind="action" name="authenticate:"/>
+ <relationship kind="action" name="createPhotoNote:"/>
+ <relationship kind="action" name="listBusinessNotebooks:"/>
<relationship kind="action" name="listNotebooks:"/>
+ <relationship kind="action" name="listSharedNotes:"/>
<relationship kind="action" name="logout:"/>
<relationship kind="outlet" name="authenticateButton" candidateClass="UIButton"/>
+ <relationship kind="outlet" name="listBusinessButton" candidateClass="UIButton"/>
<relationship kind="outlet" name="listNotebooksButton" candidateClass="UIButton"/>
<relationship kind="outlet" name="logoutButton" candidateClass="UIButton"/>
+ <relationship kind="outlet" name="photoNoteButton" candidateClass="UIButton"/>
+ <relationship kind="outlet" name="sharedNotesButton" candidateClass="UIButton"/>
<relationship kind="outlet" name="tableView" candidateClass="UITableView"/>
</relationships>
</class>
Oops, something went wrong.

0 comments on commit d4b29af

Please sign in to comment.