https://github.com/nextfaze/wordpresssyncer
syncs wordpress sites to a local core data store
https://github.com/nextfaze/wordpresssyncer
Last synced: 11 months ago
JSON representation
syncs wordpress sites to a local core data store
- Host: GitHub
- URL: https://github.com/nextfaze/wordpresssyncer
- Owner: NextFaze
- License: apache-2.0
- Created: 2011-03-16T06:31:46.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2013-07-01T07:27:08.000Z (almost 13 years ago)
- Last Synced: 2024-04-20T13:41:01.561Z (about 2 years ago)
- Language: Objective-C
- Homepage:
- Size: 316 KB
- Stars: 6
- Watchers: 21
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WordPressSyncer
WordPressSyncer - syncs WordPress blogs from the server, saving data locally in a core data database.
## Synopsis
WordPressSyncerStore *store = [[WordPressSyncerStore alloc] initWithName:@"Store" delegate:self];
store.categoryId = @"21"; // optional - restrict to specified category
store.serverPath = @"http://example.com/wp"; // URL to wordpress
[store fetch];
#pragma mark WordPressSyncerStoreDelegate
// called whenever some progress has been made.
- (void)wordPressSyncerStoreProgress:(WordPressSyncerStore *)store;
// called when all downloads have completed.
- (void)wordPressSyncerStoreCompleted:(WordPressSyncerStore *)store;
// called when errors occur. check store.error for the error
- (void)wordPressSyncerStoreFailed:(WordPressSyncerStore *)store;
posts can be accessed using the following methods of WordPressSyncerStore.
- (NSArray *)posts;
- (NSArray *)postsMatching:(NSPredicate *)predicate;
The above methods return arrays of MOWordPressSyncerPost objects. The dictionary method of MOWordPressSyncerPost can be used to access the
post contents as an NSDictionary (converted from JSON).
## Notes
This library uses submodules, so don't forget to run:
git submodule init
git submodule update
Submodules:
1. [CharacterEntityConverter](http://github.com/NextfazeSD/CharacterEntityConverter)
## License
WordPressSyncer is licensed under the terms of the [Apache License, version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html). Please see the [LICENSE](https://github.com/NextfazeSD/WordPressSyncer/blob/master/LICENSE) file for full details.
## Credits
WordPressSyncer is brought to you by [Andrew Williams](http://github.com/sobakasu) and supported by the [NextFaze](http://www.nextfaze.com) team and the GitHub community.