Giter Club home page Giter Club logo

appdotnetsheet's Introduction

AppDotNetSheet

This project is aimed to be an easy way for iOS developers to add APP.NET sharing to their own applications. It is designed to look and behave similar to the iOS5 TWTweetComposeViewController / Tweet Sheet. I built it as a way to add sharing to our Discovr apps and a new app we have on the way :)

Step 1 Step 2 Step 3

Disclaimer

Like the API this code is alpha and subject to a lot of changes. I wouldn't ship an app with this code until the API is out of alpha and we can be sure the endpoints won't change.

Compiling the example project.

Getting the code

git clone https://github.com/stuartkhall/AppDotNetSheet.git
cd AppDotNetSheet
git submodule update --init

Adding your app credentials

touch iOS-Example/iOS-Example/Credentials.h

Now create a new app at the APP.NET developer site and add your details to Credentials.h:

#import <Foundation/Foundation.h>
static NSString* const kAppDotNetClientId = @"your_client_id";
static NSString* const kAppDotNetCallbackURL = @"http://yourcallback";
static NSString* const kAppDotNetScopes = @"write_post stream";

Open the project

open iOS-Example/iOS-Example.xcodeproj/

Adding to your project

After you have created your project add this repository to it, e.g. as a submodule:

git submodule add https://github.com/stuartkhall/AppDotNetSheet.git AppDotNetSheet

You'll also need AFNetworking:

git submodule add https://github.com/AFNetworking/AFNetworking.git AFNetworking

Then drag the AppDotNetClient and AppDotNetSheet folders into your app.

Initialise the client with your details from the APP.NET developer site.

#import "AppDotNetClient.h"
...
[AppDotNetClient initWithClientId:kAppDotNetClientId
                   andCallbackURL:kAppDotNetCallbackURL
                        andScopes:[kAppDotNetScopes componentsSeparatedByString:@" "]];

And finally show the control:

AppDotNetComposeViewController* controller = [[AppDotNetComposeViewController alloc] init];
[self presentModalViewController:controller animated:NO];

TODO:

If you are a designer or developer please jump in and help out.

  • Test, test, test
  • Internationalisation / Localisation
  • Multiple users
  • Update design to better match TWTweetComposeViewController.
  • Better error handling.
  • Validate tokens.
  • Images.

Questions

Ask away on APP.NET of course I'm @stuartkhall, or I'm the same handle on Twitter @stuartkhall

appdotnetsheet's People

Contributors

stuartkhall avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.