Skip to content

01 start #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 35 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,56 @@
We are making an iPhone Postcard App using our sponsor's API.
Sincerely's Ship API is highly awesome and enables you to take pictures and send physical postcards to real human beings!

http://www.meetup.com/Women-Who-Code-SF/events/113359282/
Meetup at Sincerely, April 12, 2013

This is a work in progress. Branches will be structured to follow a logical lesson plan.
# Instructions

## Current Branch
## Select ZIP download button & save the file to your desktop

* Choose a file from one of your social network/filesharing accounts using Filepicker.io (Dropbox, Facebook, etc)
* Add text, filter to the image using the Aviary SDK
* Print out the picture as a real-life postcard using Sincerely
![Download](https://raw.github.com/iosstudygroup/WomenWhoCodeSincerely/01Start/Screenshots/download1.png)

![iPhone app](http://photos4.meetupstatic.com/photos/event/b/6/6/e/event_224806702.jpeg)
## Unzip the file and open **_Women Who Code Sincerely.xcodeproj_**

![Open Xcode](https://raw.github.com/iosstudygroup/WomenWhoCodeSincerely/01Start/Screenshots/screen2.png)

## We will create a file that has the secret keys for Sincerely. In XCode select **File > New > File**

![Create New ConsumerCredentials.h File](https://raw.github.com/iosstudygroup/WomenWhoCodeSincerely/01Start/Screenshots/createFile.png)

## Choose a Template for your new file: - select **other** in the left menu and **empty** then **Next**

![new template](https://raw.github.com/iosstudygroup/WomenWhoCodeSincerely/01Start/Screenshots/createEmpty.png)

## Name your file ConsumerCredentials.h

### ConsumerCredentials.h
![name file](https://raw.github.com/iosstudygroup/WomenWhoCodeSincerely/01Start/Screenshots/consumercredentials.png)

* Create a file named ConsumerCredentials.h
* Add API keys for these constants like so:
## Type `#define kSincerelyAPIKey @""` We are going to enter the secret Sincerely API key during our workshop.

#define kSincerelyAPIKey @"stuff"
![key](https://raw.github.com/iosstudygroup/WomenWhoCodeSincerely/01Start/Screenshots/consumercredentials2.png)

#define kFilepickerAPIKey @"stuff"
## Select the file WomenWhoCode.storyboard and then choose the View Controller

![Storyboard screenshot](https://raw.github.com/iosstudygroup/WomenWhoCodeSincerely/01Start/Screenshots/storyboard.png)

## Add a button and an imageview to the WWViewController in the storyboard

![Storyboard screenshot](https://raw.github.com/iosstudygroup/WomenWhoCodeSincerely/01Start/Screenshots/storyboard2.png)



# Details


http://www.meetup.com/Women-Who-Code-SF/events/113359282/
Meetup at Sincerely, April 12, 2013

* plist - add the API keys for filepicker and Aviary
Thank you!

# APIs Used
#### APIs Used

* Ship Library by Sincerely https://dev.sincerely.com/docs
* Filepicker.io iOS - https://developers.filepicker.io/docs/ios/#installquick

# Links
#### Links

* [Women Who Code iOS Group Wiki](https://github.com/iosstudygroup/WomenWhoCodeSincerely/wiki/Women-Who-Code-iOS-Study-Group)
* [Meetup Group: Women Who Code SF](http://www.meetup.com/Women-Who-Code-SF/)
Expand Down
Binary file added Screenshots/consumercredentials.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshots/consumercredentials2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshots/createEmpty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshots/createFile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshots/download1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshots/screen2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshots/storyboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshots/storyboard2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 4 additions & 22 deletions Women Who Code Sincerely.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
643F04EF1718791F008F1E05 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 643F04EE1718791F008F1E05 /* CoreFoundation.framework */; };
643F04F117187924008F1E05 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 643F04F017187924008F1E05 /* MobileCoreServices.framework */; };
643F04F31718798E008F1E05 /* WomenWhoCode.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 643F04F21718798E008F1E05 /* WomenWhoCode.storyboard */; };
644E3740171B53E1004048CA /* UIViewController+APIKeys.m in Sources */ = {isa = PBXBuildFile; fileRef = 644E373F171B53E1004048CA /* UIViewController+APIKeys.m */; };
648F2895171B189A00883240 /* WWFilterViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 648F2893171B189A00883240 /* WWFilterViewController.m */; };
648F2896171B189A00883240 /* WWFilterViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 648F2894171B189A00883240 /* WWFilterViewController.xib */; };
64A4BC01171A2987009F1FA0 /* videoplayer.png in Resources */ = {isa = PBXBuildFile; fileRef = 64A4BC00171A2987009F1FA0 /* videoplayer.png */; };
64A4BC03171A2B01009F1FA0 /* button-red-normal_s1.png in Resources */ = {isa = PBXBuildFile; fileRef = 64A4BC02171A2B01009F1FA0 /* button-red-normal_s1.png */; };
64AE2F1F1718630000B4F6E0 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 64AE2F1E1718630000B4F6E0 /* UIKit.framework */; };
Expand Down Expand Up @@ -51,7 +48,6 @@
64CB0FB5171B203500C4602F /* libz.1.2.5.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 64CB0FB4171B203500C4602F /* libz.1.2.5.dylib */; };
64CB0FB7171B203A00C4602F /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 64CB0FB6171B203A00C4602F /* OpenGLES.framework */; };
64CB0FB9171B204600C4602F /* StoreKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 64CB0FB8171B204600C4602F /* StoreKit.framework */; };
64E7498D17190D8000B3B1A1 /* WWMakeMineViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 64E7498C17190D8000B3B1A1 /* WWMakeMineViewController.m */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand All @@ -67,11 +63,8 @@
643F04EE1718791F008F1E05 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = System/Library/Frameworks/CoreFoundation.framework; sourceTree = SDKROOT; };
643F04F017187924008F1E05 /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; };
643F04F21718798E008F1E05 /* WomenWhoCode.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = WomenWhoCode.storyboard; sourceTree = "<group>"; };
644E373E171B53E1004048CA /* UIViewController+APIKeys.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIViewController+APIKeys.h"; sourceTree = "<group>"; };
644E373F171B53E1004048CA /* UIViewController+APIKeys.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIViewController+APIKeys.m"; sourceTree = "<group>"; };
648F2892171B189A00883240 /* WWFilterViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WWFilterViewController.h; sourceTree = "<group>"; };
648F2893171B189A00883240 /* WWFilterViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WWFilterViewController.m; sourceTree = "<group>"; };
648F2894171B189A00883240 /* WWFilterViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = WWFilterViewController.xib; sourceTree = "<group>"; };
644E373E171B53E1004048CA /* UIViewController+APIKeys.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "UIViewController+APIKeys.h"; path = "/Users/ryanilano/Developer/wwcode/Women Who Code Sincerely/Women Who Code Sincerely/UIViewController+APIKeys.h"; sourceTree = "<absolute>"; };
644E373F171B53E1004048CA /* UIViewController+APIKeys.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "UIViewController+APIKeys.m"; path = "/Users/ryanilano/Developer/wwcode/Women Who Code Sincerely/Women Who Code Sincerely/UIViewController+APIKeys.m"; sourceTree = "<absolute>"; };
64A4BC00171A2987009F1FA0 /* videoplayer.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = videoplayer.png; path = "../../../../Pictures/UX/UX-iOS/videoplayer.png"; sourceTree = "<group>"; };
64A4BC02171A2B01009F1FA0 /* button-red-normal_s1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "button-red-normal_s1.png"; path = "../../../../Pictures/UX/UX-iOS/button-red-normal_s1.png"; sourceTree = "<group>"; };
64AE2F1B1718630000B4F6E0 /* Women Who Code Sincerely.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Women Who Code Sincerely.app"; sourceTree = BUILT_PRODUCTS_DIR; };
Expand Down Expand Up @@ -112,8 +105,6 @@
64CB0FB4171B203500C4602F /* libz.1.2.5.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libz.1.2.5.dylib; path = usr/lib/libz.1.2.5.dylib; sourceTree = SDKROOT; };
64CB0FB6171B203A00C4602F /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = System/Library/Frameworks/OpenGLES.framework; sourceTree = SDKROOT; };
64CB0FB8171B204600C4602F /* StoreKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = StoreKit.framework; path = System/Library/Frameworks/StoreKit.framework; sourceTree = SDKROOT; };
64E7498B17190D8000B3B1A1 /* WWMakeMineViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WWMakeMineViewController.h; sourceTree = "<group>"; };
64E7498C17190D8000B3B1A1 /* WWMakeMineViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WWMakeMineViewController.m; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -151,8 +142,6 @@
641943B3171CF4A6003843F3 /* Helper */ = {
isa = PBXGroup;
children = (
644E373E171B53E1004048CA /* UIViewController+APIKeys.h */,
644E373F171B53E1004048CA /* UIViewController+APIKeys.m */,
);
name = Helper;
sourceTree = "<group>";
Expand All @@ -163,13 +152,8 @@
64AE2F361718630000B4F6E0 /* WWViewController.h */,
64AE2F371718630000B4F6E0 /* WWViewController.m */,
64AE2F391718630000B4F6E0 /* WWViewController.xib */,
64E7498B17190D8000B3B1A1 /* WWMakeMineViewController.h */,
64E7498C17190D8000B3B1A1 /* WWMakeMineViewController.m */,
648F2892171B189A00883240 /* WWFilterViewController.h */,
648F2893171B189A00883240 /* WWFilterViewController.m */,
644E373E171B53E1004048CA /* UIViewController+APIKeys.h */,
644E373F171B53E1004048CA /* UIViewController+APIKeys.m */,
648F2894171B189A00883240 /* WWFilterViewController.xib */,
);
name = GUI;
sourceTree = "<group>";
Expand Down Expand Up @@ -239,6 +223,8 @@
64AE2F251718630000B4F6E0 /* Supporting Files */ = {
isa = PBXGroup;
children = (
644E373E171B53E1004048CA /* UIViewController+APIKeys.h */,
644E373F171B53E1004048CA /* UIViewController+APIKeys.m */,
64AE2F261718630000B4F6E0 /* Women Who Code Sincerely-Info.plist */,
64AE2F271718630000B4F6E0 /* InfoPlist.strings */,
64AE2F2A1718630000B4F6E0 /* main.m */,
Expand Down Expand Up @@ -357,7 +343,6 @@
643F04F31718798E008F1E05 /* WomenWhoCode.storyboard in Resources */,
64A4BC01171A2987009F1FA0 /* videoplayer.png in Resources */,
64A4BC03171A2B01009F1FA0 /* button-red-normal_s1.png in Resources */,
648F2896171B189A00883240 /* WWFilterViewController.xib in Resources */,
64CB0FAB171B1FE500C4602F /* AviarySDKResources.bundle in Resources */,
641943AE171CF396003843F3 /* wwcode-computerGirls.png in Resources */,
641943B0171CF43A003843F3 /* wwcode-computerGirls2.png in Resources */,
Expand All @@ -378,9 +363,6 @@
64AE2F2B1718630000B4F6E0 /* main.m in Sources */,
64AE2F2F1718630000B4F6E0 /* WWAppDelegate.m in Sources */,
64AE2F381718630000B4F6E0 /* WWViewController.m in Sources */,
64E7498D17190D8000B3B1A1 /* WWMakeMineViewController.m in Sources */,
648F2895171B189A00883240 /* WWFilterViewController.m in Sources */,
644E3740171B53E1004048CA /* UIViewController+APIKeys.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
Binary file not shown.
14 changes: 0 additions & 14 deletions Women Who Code Sincerely/UIViewController+APIKeys.h

This file was deleted.

37 changes: 0 additions & 37 deletions Women Who Code Sincerely/UIViewController+APIKeys.m

This file was deleted.

10 changes: 3 additions & 7 deletions Women Who Code Sincerely/WWViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,11 @@
//

#import <UIKit/UIKit.h>
#import <Sincerely/Sincerely.h>
#import <Sincerely/SincerelyConstants.h>
#import "ConsumerCredentials.h"


@interface WWViewController : UIViewController <SYSincerelyControllerDelegate>

@property (weak, nonatomic) IBOutlet UIButton *chooseButton;
@property (weak, nonatomic) IBOutlet UIImageView *myPhoto;
- (IBAction)sincerelyButtonPressed:(UIButton *)sender;
@interface WWViewController : UIViewController



@end
39 changes: 0 additions & 39 deletions Women Who Code Sincerely/WWViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,45 +29,6 @@ - (void)didReceiveMemoryWarning
// Dispose of any resources that can be recreated.
}

- (IBAction)sincerelyButtonPressed:(UIButton *)sender {

SYSincerelyController *sincerelyController = [[SYSincerelyController alloc] initWithImages:[NSArray arrayWithObject:[UIImage imageNamed:@"computers.jpeg.png"]]
product:SYProductTypePostcard
applicationKey:kSincerelyAPIKey

delegate:self];
if (sincerelyController) {
[self presentViewController:sincerelyController animated:YES completion:NULL];

}
}


#pragma mark -
#pragma mark - SYSincerelyControllerDelegate
-(void)sincerelyControllerDidFinish:(SYSincerelyController *)controller {
/*
* Here I know that the user made a purchase and I can do something with it
*/

[self dismissViewControllerAnimated:YES completion:NULL];
}

-(void)sincerelyControllerDidCancel:(SYSincerelyController *)controller {
/*
* Here I know that the user hit the cancel button and they want to leave the Sincerely Controller
*/

[self dismissViewControllerAnimated:YES completion:NULL];
}

-(void)sincerelyControllerDidFailInitiationWithError:(NSError *)error {
/*
* Here I know that incorrect inputs were given to initWithImages:product:applicationKey:delegate
*/

NSLog(@"Error: %@", error);
}



Expand Down
Loading