Skip to content

Instantly share code, notes, and snippets.

View tayhalla's full-sized avatar

Taylor Halliday tayhalla

View GitHub Profile
/*
Creates a green btn and sets its position equal to a rect of {50.0f, 50.0f, 200.0f, 300.0f}
*/
UIButton *btn = [[UIButton alloc] init];
btn.backgroundColor = [UIColor greenColor];
[btn setTranslatesAutoresizingMaskIntoConstraints:NO];
[self.view addSubview:btn];
NSLayoutConstraint *widthConstraint = [NSLayoutConstraint constraintWithItem:btn attribute:NSLayoutAttributeWidth relatedBy:NSLayoutRelationEqual toItem:nil attribute:0 multiplier:0.0 constant:200];
@tayhalla
tayhalla / gist:7dc8c302dfb320afceb8
Created September 23, 2014 19:00
ActivityNetworkSample
{
"retries": 0,
"total_results": 7,
"items_per_page": 25,
"start_index": 0,
"facets": [],
"facet_values": [],
"suggestions": [],
"results": [
{

Inital (read) call to the stateless action APIs:

Initial /invoke call with a read action

POST /api/v4/implementations/invoke/ HTTP/1.1
Host: zapier.com
Content-Type: application/json
Accepts: application/json
Authorization: Bearer SOMEKEY