This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const request = require("request"); | |
| const _ = require("lodash"); | |
| const { writeToPath } = require("@fast-csv/format"); | |
| const path = require("path"); | |
| const { argv } = require("process"); | |
| var traitTypes = [ | |
| "Head", | |
| "Body", | |
| "Background", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| object NrlAndAfl { | |
| var getCompetitions = foreach("${pList}", "id") { | |
| exec(http("Competition ${id}") | |
| .get("/api/sport/5/competition/${id}/event")) | |
| .pause(5) | |
| } | |
| val get = exec(http("AFL getCompetitions") | |
| .get("/api/sport/5/competition") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class LoggerActionFilter : ActionFilterAttribute | |
| { | |
| public override void OnActionExecuting(HttpActionContext actionContext) | |
| { | |
| if (!actionContext.Request.Properties.ContainsKey(LoggerExtensions.RequestKey)) | |
| { | |
| actionContext.Request.Properties.Add(LoggerExtensions.RequestKey, Logger()); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Inner Exception: | |
| "Accessed JArray values with invalid key value: \"Product\". Array position index expected | |
| Stack trace: | |
| at Neo4jClient.Serialization.CypherJsonDeserializer`1.Deserialize(String content) in c:\TeamCity\buildAgent\work\f1c4cf3efbf1b05e\Neo4jClient\Serialization\CypherJsonDeserializer.cs:line 61 | |
| at Neo4jClient.GraphClient.<>c__DisplayClass1e`1.<Neo4jClient.IRawGraphClient.ExecuteGetCypherResultsAsync>b__1d(Task`1 responseTask) in c:\TeamCity\buildAgent\work\f1c4cf3efbf1b05e\Neo4jClient\GraphClient.cs:line 803 | |
| at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() | |
| at System.Threading.Tasks.Task.Execute() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public Task<string> PostAsync(string address, object data) | |
| { | |
| return _httpClient | |
| .PostAsync(address, new StringContent(JsonConvert.SerializeObject(data))) | |
| .ContinueWith(result => | |
| { | |
| var postResult = result.Result; | |
| var content = postResult.Content.ReadAsStringAsync().Result; | |
| return postResult.IsSuccessStatusCode ? content : ""; | |
| }); |