Skip to content

Instantly share code, notes, and snippets.

#import "ViewController.h"
#import <URXSearch/URX.h>
#import <URXWidgets/URXWidgets.h>
@interface ViewController ()
@property (strong, nonatomic) IBOutlet URXListenButtonView *listenButtonView;
@end
@implementation ViewController
"result": [
{
"@context": "http://schema.org",
"@type": "Thing",
"description": "Rideshare with Lyft. Lyft is your friend with a car, whenever you need one. Download the app, and get a ride from a friendly driver within minutes.",
"image": "https://www.lyft.com/assets/img/lyft_facebook_share_1200.jpg",
"name": "A ride whenever you need one",
"potentialAction": {
"@type": "TravelAction",
"description": "Book a Ride",
- (IBAction)buttonTapped:(id)sender {
NSLog(@"%s: %d", __func__, __LINE__);
URXDomainFilter *query = [URXDomainFilter domainWithPLD:@"lyft.com"];
[query searchAsynchronouslyWithSuccessHandler:^(URXSearchResponse *response) {
NSLog(@"response=%@", response);
URXSearchResult *result = [response.results firstObject];
[result resolveAsynchronouslyWithWebFallbackAndFailureHandler:^(URXAPIError *error) {
NSLog(@"error=%@", error);
}];
} andFailureHandler:^(URXAPIError *error) {
lessc _theme/sphinx_rtd_theme/static/css/theme.less > _theme/sphinx_rtd_theme/static/css/theme.css
lessc urx-styles/base.less > _theme/sphinx_rtd_theme/static/css/bootstrap.css
# TODO: make clean should probably clean these fonts out. but oh well...
cp -r urx-styles/bootstrap/fonts/ _theme/sphinx_rtd_theme/static/fonts/
<!DOCTYPE html>
<!-- Mobile redirect: 80 -->
// Copyright (c) 2014 URX. All rights reserved.
#import "URXListenButtonSearchViewController.h"
#import <URXSearch/URXTerm.h>
#import <URXSearch/URXSearchResult.h>
#import <URXSearch/NSDictionary+JSONLD.h>
#import <URXSearch/URXRawQuery.h>
#define REUSE_IDENTIFIER @"URXSearchResultGenericTableViewCell"
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" itemscope="" itemtype="http://schema.org/NewsArticle" itemid="http://mic.com/articles/74689/the-8-most-dysfunctional-families-in-tv-history"> <!--<![endif]-->
<head><meta name="title" content="Stevie Wonder Isn't Blind — and 10 More of Music's Craziest Conspiracy Theories">
<meta name="description" content="People actually believe these things?">
<meta property="article:published_time" content="2015-03-06T13:52:36.000Z">
<meta property="og:type" content="article">
<script>
$urx.setApiKey("API KEY GOES HERE");
var geoFilter = "near:40.748441,-73.985664";
var actionFilter = " action:BuyAction";
var domainFilter = " domain:seatgeek.com domain:stubhub.com domain:ticketmaster.com"
$urx.search(geoFilter + actionFilter + domainFilter, function(response) {
var searchResult = response.results[0];
}, function(req, errorMessage){
// SEARCH FAILURE HANDLER
console.log(errorMessage);
// Copyright (c) 2014 URX. All rights reserved.
#import "URXListenButtonSearchViewController.h"
#import <URXSearch/URXTerm.h>
#import <URXSearch/URXSearchResult.h>
#import <URXSearch/NSDictionary+JSONLD.h>
#import <URXSearch/URXActionFilter.h>
#import <URXSearch/URXAnd.h>
#define REUSE_IDENTIFIER @"URXSearchResultGenericTableViewCell"
// Copyright (c) 2014 URX. All rights reserved.
#import "URXListenButtonSearchViewController.h"
#import <URXSearch/URXTerm.h>
#import <URXSearch/URXSearchResult.h>
#import <URXSearch/NSDictionary+JSONLD.h>
#import <URXSearch/URXActionFilter.h>
#import <URXSearch/URXAnd.h>
#define REUSE_IDENTIFIER @"URXSearchResultGenericTableViewCell"