Open MagicianSoftware opened 11 years ago
I'm currently busy with other projects and don't really have an opportunity to write these myself, but I'd be happy to review pull requests for any of these features.
I just skimmed the documentation for each of these APIs, and here's what I think would be needed:
public_messages
and messages
scopes.-[ANSession completeUserRequest:withResponse:representation:error:]
to see what I'm talking about).While you'd have to learn some things about how AppNetKit works, all of these tasks are similar to code that's already in AppNetKit for the Posts API. Reading analogous methods and classes in the AppNetKit posts API should teach you what to do to create these new classes and methods.
factual_id
instead of an ID number. You might need to extract a superclass from ANIdentifiedResource that would separate the precise representation of the ID from the concept of a resource with an identifier, and then modify _ANIdentifiedResourceSet to treat the ID as this abstract concept instead of a concrete 64-bit integer.factual_id
, but this class is only available in iOS 6 and OS X 10.8, so you should probably use a plain NSString.Other than the superclass issue, this would all be pretty straightforward.
mime_type
would be mimeType
, but it should probably be MIMEType
. You would probably want to add a transformation in ANResource+Magic.m's ANKeyForGetterSelector()
to correct for this; there are already a few similar ones there.UT
prefix.There are some complications here, but this could probably be done by a good programmer.
Note that it looks like @hezi is actually working on a fork with support for the Files API. You might want to coordinate with him rather than duplicating effort.
I Have a lot of what you described in the Files API section already written, just needs some refactoring. I'll probably have it complete by next week.
Maybe this issue should be split to 3 (Files, Places, Messaging) and be assigned to interested developer. I'll take Files as I've already started, but will probably get around to implement messaging.
I've just started working with the AppNetKit and still figuring out how it all works. Once I figure it out, I'll start working on implementing wither the Messages or Places API.
Hezi: Any chance when you've finished implementing the Files API you would submit it as a pull request? :)
Cheers
Any word on the messaging API? I'm planning on building a Mac OSX app sooner or later, and will probably write one and submit the PR if none exists yet.
@SirSkidmore Looking around GitHub, I see that @PhantomSunCreative's fork seems to have a couple tiny steps in this direction, but he's reusing ANPost instead of creating the new classes that would really be needed to do it properly. Unless someone has a branch they haven't pushed up yet, you're probably going to have to do it yourself. Sorry!
App.net has released three new API's Messaging, File Storing and now Places. Would love to see these added in here.