Skip to content

Instantly share code, notes, and snippets.

{
"_meta": {
"appId": "readful-headlines"
},
"key": "Headlines\/Breaking Headlines",
"source": "https:\/\/www.readfulapp.com\/site\/Headlines?tag=Breaking%20Headlines",
"name": "N:Headlines [Breaking Headlines]",
"cacheControl": 300,
"dataVersion": "3.0",
"generated": "2017-05-01T19:34:21.329Z",
{
"_meta": {
"appId": "readful-headlines"
},
"key": "Headlines\/Breaking Headlines",
"source": "https:\/\/www.readfulapp.com\/site\/Headlines?tag=Breaking%20Headlines",
"name": "N:Headlines [Breaking Headlines]",
"cacheControl": 300,
"dataVersion": "3.0",
"generated": "2017-05-01T19:34:21.329Z",
{
"__description": "No media",
"version": "43974c23f46fa379282fd2acfe77e81c",
"source": "Manual",
"source_length": "184235",
"generated": "2017-04-28T16:07:54+00:00",
"server": "172.30.20.5",
"first_image": "http:\/\/kstp.com\/kstpImages\/repository\/2017-04\/800BloomingtonDeathInvestigation-KSTPThomasPalanuk.JPG",
"first_description": "Bloomington Police Investigate 19-Year-Old's Death as Homicide",
"items": [
{
"networks": [
{
"id": "clientDfp",
"type": "DFP",
"config": {
"id": "/32805352/tx-dallas-WFAA-mobile-B3341/app-core"
}
},
{
{
"networks": [
{
"id": "clientMln",
"type": "MLN",
"config": {
"requestHost": "prod-adserving.doapps.com",
"impressionHost": "vpc-adserving.doapps.com",
"clicksHost": "vpc-adserving.doapps.com"
}
import Foundation
enum NMAdError: ErrorType , CustomStringConvertible {
case NotConfigured(missing: String)
case InvalidData(message: String)
case NetworkingError(error: NSError)
var description: String {
switch self {
case .InvalidData(let message):
import UIKit
struct NMAdLocation {
var categoryId: String
var categoryName: String
var subcategoryId: String
var subcategoryName: String
var articleUrl: String?
init(categoryId: String, categoryName: String, subcategoryId: String, subcategoryName: String, articleUrl: String? = nil) {
{
"provider": {
"name": "Weather.com"
},
"request": {
"timestamp": {
"offset": "2016-05-19T14:37:52.770+0000",
"utc": "2016-05-19T14:37:52.770Z",
"epoch": 1463668672000,
"timezoneOffset": 0
{
"location": {
"id":"wx-2396395",
"name":"Rochester, MN",
"lat":44.015076,
"lng":-92.47752,
"countyFips":["27109"]
},
"timestamp":{
"offset":"2015-12-21T09:27:12.000-0600",
{
"location" : { "latitude" : "44.9644", "longitude" : "-93.1951", "zipcode" : "55114" },
"branding" : {},
"ads" : {},
"metrics" : {},
"push" : { "weather" : { "data": null, "enabled": false } },
}