An open API service indexing awesome lists of open source software.

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

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.