Skip to content

Instantly share code, notes, and snippets.

if #available(iOS 14, *) {
FlurrySKAdNetwork.flurryUpdateConversionValue(with: .Registration)
}
if #available(iOS 14, *) {
FlurrySKAdNetwork.flurryUpdateConversionValue(with: .LogIn)
}
if #available(iOS 14, *) {
FlurrySKAdNetwork.flurryUpdateConversionValue(with: .Subscription)
if (@available(iOS 14.0, *)) {
[FlurrySKAdNetwork flurryUpdateConversionValueWithEvent: Registration];
}
if (@available(iOS 14.0, *)) {
[FlurrySKAdNetwork flurryUpdateConversionValueWithEvent: Login];
}
if (@available(iOS 14.0, *)) {
let array = ["value1", "value2", "value3"]
//Sets and replaces (if any exist) the values for a property.
FlurryUserProperties.set("key", values: array)
FlurryUserProperties.set("key", value: "string")
//Adds the values or single value to the property.
FlurryUserProperties.add("key", values: array)
FlurryUserProperties.add("key", value: "string")
...
{
"sessionTimestamp": "1511237978194",
"appVersion": "1.1",
"sessionDuration": "90759",
"eventOffset": "31430",
"carrier": "monkey brains",
"deviceIdentifiers": {
"idfv": "26B46C28-E0A0-4150-B59A-C8ECC03C6BBD"
},
curl 'https://flurry-rdd.s3.amazonaws.com/downloads/~~YOUR_REQUEST_ID~~.JSON.gz?AWSAccessKeyId=AAAA1111BBBB2222CCCC&Expires=1513039053&Signature=xbKNnTgpv1odAfVgPRLMyck8UnE%3D' -o yourfilename.txt.gz
@flurrydev
flurrydev / gist:3e18bda59f278a96778b143774b721cd
Created February 29, 2020 00:18
YDN RDD Polling Response
{
"data":{
"type":"rawData",
"id":"~~YOUR_REQUEST_ID~~",
"attributes":{
"requestStatus":"Success",
"s3URI":"https://flurry-rdd.s3.amazonaws.com/downloads/26.JSON.gz?AWSAccessKeyId=AAAA1111BBBB2222CCCC&Expires=1513101235&Signature=h%2FChXRi5QwmvhUrkpwq2nVKf8sc%3D"
}
}
}
curl -g "https://rawdata.flurry.com/pulse/v1/rawData/~~YOUR_REQUEST_ID~~?fields[rawData]=requestStatus,s3URI"
-H 'accept: application/vnd.api+json;'
-H 'authorization: Bearer ~~YOUR TOKEN~~'
-H 'cache-control: no-cache'
-H 'content-type: application/vnd.api+json;'
@flurrydev
flurrydev / gist:7ab15263ba52dbc310414b1585816ec0
Created February 29, 2020 00:12
YDN RDD Request Response
{
"data":{
"type":"rawData",
"id":"26",
"attributes":{
"creationDate":1513036531916,
"endTime":1511251199000,
"modifiedDate":1513036531916,
"outputFormat":"JSON",
"requestStatus":"Acknowledged",
@flurrydev
flurrydev / gist:bd1c5145fdfe0e6b7dcd92ffe9aedeed
Created February 28, 2020 22:39
YDN RDD API Request Example
curl -X POST "https://rawdata.flurry.com/pulse/v1/rawData"
-H 'accept: application/vnd.api+json'
-H 'authorization: Bearer ~~YOUR TOKEN~~' -H 'cache-control: no-cache' -H 'content-type: application/vnd.api+json'
-d '{"data":
{"type": "rawData", "attributes":
{"startTime": “1511164800000",
"endTime": “1511251199000",
"outputFormat": “JSON",
"apiKey": "AAAA1111BBBB2222CCCC"
}
@flurrydev
flurrydev / androiduserproperties
Last active January 8, 2020 18:46
Android User Properties
//Sets and replaces (if any exist) the values or single value for a property.
FlurryAgent.UserProperties.set(String key, List<String> values);
FlurryAgent.UserProperties.set(String key, String value);
//Adds the values or single value to the property.
FlurryAgent.UserProperties.add(String key, List<String> values);
FlurryAgent.UserProperties.add(String key, String value);
//Removes the values or single value from the property
FlurryAgent.UserProperties.remove(String key, List<String> values);