To run the example project, clone the repo, and run pod install
from the Example directory first.
EdmodoConnectIOS is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "EdmodoConnectIOS"
Doug Banks, [email protected]
EdmodoConnectIOS is available under the MIT license. See the LICENSE file for more info.
Use EMConnectLoginView to bring up a webview where users can authenticate. If that succeeds the success block is called with your access token.
Once you have your access token, use EMConnectDataStore to do asynchronous communication with the EdmodoConnect API.
Pass your configured data store to EMObjects and call resetFromDataStore. When that asynchronous command is resolved, the authenticated user's edmodo network (groups, teachers, etc) has been pulled into EMObjects. Users and groups are bundled into convenient classes and are available through function calls on EMObjects.
EMLoginService is a wrapper around everything up to and including passing a data store into EMObjects. On a success callback, simply call resetFromDataStore on EMObjects. EMLoginService also supports a mock data store so you can quickly log in as different parties. The mock store has no real connection to Edmodo, but it populates the EMObjects with a useful set of entities so you can focus debugging efforts on the logic on top of that level.