Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions GoIntegrationsTest/GoIntegrationsTest.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.9.34728.123
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GoIntegrationsTest", "GoIntegrationsTest\GoIntegrationsTest.csproj", "{22237726-1FD6-4F0D-A0D4-B4FE279C673C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{22237726-1FD6-4F0D-A0D4-B4FE279C673C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{22237726-1FD6-4F0D-A0D4-B4FE279C673C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{22237726-1FD6-4F0D-A0D4-B4FE279C673C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{22237726-1FD6-4F0D-A0D4-B4FE279C673C}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {415234B3-C31D-4FFA-B41D-38A923C13E59}
EndGlobalSection
EndGlobal
14 changes: 14 additions & 0 deletions GoIntegrationsTest/GoIntegrationsTest/GoIntegrationsTest.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="RestSharp" Version="110.2.0" />
</ItemGroup>

</Project>
56 changes: 56 additions & 0 deletions GoIntegrationsTest/GoIntegrationsTest/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
using RestSharp;
using System.IO;

namespace GoIntegrationsTest
{
internal class Program
{
static async Task Main(string[] args)
{
// Specify the URL to send the POST request.
string url = "https://flow.zoho.com/663067151/flow/webhook/incoming?zapikey=1001.72d0b18a4316a1acc8f0de7fa7dbdf74.4f792bf21ebf81a4d04112d94177a2a1&isdebug=false";

// Create RestClient instance.
var client = new RestClient("https://flow.zoho.com/663067151/flow/webhook/incoming?zapikey=1001.72d0b18a4316a1acc8f0de7fa7dbdf74.4f792bf21ebf81a4d04112d94177a2a1&isdebug=false");

// Relative path to the JSON file.
string jsonPayload = @"
{
""github_username"": ""JrobMo"",
""short_greeting"": ""Salutations & Thanks for the opportunity!"",
""email"": ""createwithjr@outlook.com"",
""name"" : ""Jacob Robbins"",
""random_number"": {
""number"": 33.23,
""reason"": ""I've come up with a 32.33~... repeating of course, percentage... chance of survival.""
},
""is_test"": false
}";

// Add JSON file content as request body.
var request = new RestRequest(url, Method.Post)
.AddJsonBody(jsonPayload, forceSerialize: true);

// Execute the request and capture the response.
RestResponse response = client.Execute(request);

//Graceful Error handling for Test case.
if (response.IsSuccessful)
{
Console.WriteLine("Request was successful.");

// Output the response content.
Console.WriteLine("Response content:");
Console.WriteLine(response.Content);
}
else
{
//Output response Status and Error code upon failure (graceful error handling).
Console.WriteLine("Request failed with status code: " + response.StatusCode);
Console.WriteLine("Error message: " + response.ErrorMessage);
}
Console.ReadLine();
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v8.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v8.0": {
"GoIntegrationsTest/1.0.0": {
"dependencies": {
"RestSharp": "110.2.0"
},
"runtime": {
"GoIntegrationsTest.dll": {}
}
},
"RestSharp/110.2.0": {
"dependencies": {
"System.Text.Json": "7.0.2"
},
"runtime": {
"lib/net7.0/RestSharp.dll": {
"assemblyVersion": "110.2.0.0",
"fileVersion": "110.2.0.0"
}
}
},
"System.Text.Encodings.Web/7.0.0": {},
"System.Text.Json/7.0.2": {
"dependencies": {
"System.Text.Encodings.Web": "7.0.0"
}
}
}
},
"libraries": {
"GoIntegrationsTest/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"RestSharp/110.2.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-FXGw0IMcqY7yO/hzS9QrD3iNswNgb9UxJnxWmfOxmGs4kRlZWqdtBoGPLuhlbgsDzX1RFo4WKui8TGGKXWKalw==",
"path": "restsharp/110.2.0",
"hashPath": "restsharp.110.2.0.nupkg.sha512"
},
"System.Text.Encodings.Web/7.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-OP6umVGxc0Z0MvZQBVigj4/U31Pw72ITihDWP9WiWDm+q5aoe0GaJivsfYGq53o6dxH7DcXWiCTl7+0o2CGdmg==",
"path": "system.text.encodings.web/7.0.0",
"hashPath": "system.text.encodings.web.7.0.0.nupkg.sha512"
},
"System.Text.Json/7.0.2": {
"type": "package",
"serviceable": true,
"sha512": "sha512-/LZf/JrGyilojqwpaywb+sSz8Tew7ij4K/Sk+UW8AKfAK7KRhR6mKpKtTm06cYA7bCpGTWfYksIW+mVsdxPegQ==",
"path": "system.text.json/7.0.2",
"hashPath": "system.text.json.7.0.2.nupkg.sha512"
}
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"runtimeOptions": {
"tfm": "net8.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "8.0.0"
},
"configProperties": {
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Reflection;

[assembly: System.Reflection.AssemblyCompanyAttribute("GoIntegrationsTest")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("GoIntegrationsTest")]
[assembly: System.Reflection.AssemblyTitleAttribute("GoIntegrationsTest")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

// Generated by the MSBuild WriteCodeFragment class.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
567526e31826dd3a89c0b4f29e06b17ec4b5275fadf9a8785bfbc9fa026837ef
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
is_global = true
build_property.TargetFramework = net8.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = GoIntegrationsTest
build_property.ProjectDir = J:\PersonalProjects\GoTest\GoIntegrationsTest\GoIntegrationsTest\
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3921eb87024f2fae323209fc03645e8b345573bd755a49a47992545fb2960dc4
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
J:\PersonalProjects\GoTest\GoIntegrationsTest\GoIntegrationsTest\bin\Debug\net8.0\GoIntegrationsTest.exe
J:\PersonalProjects\GoTest\GoIntegrationsTest\GoIntegrationsTest\bin\Debug\net8.0\GoIntegrationsTest.deps.json
J:\PersonalProjects\GoTest\GoIntegrationsTest\GoIntegrationsTest\bin\Debug\net8.0\GoIntegrationsTest.runtimeconfig.json
J:\PersonalProjects\GoTest\GoIntegrationsTest\GoIntegrationsTest\bin\Debug\net8.0\GoIntegrationsTest.dll
J:\PersonalProjects\GoTest\GoIntegrationsTest\GoIntegrationsTest\bin\Debug\net8.0\GoIntegrationsTest.pdb
J:\PersonalProjects\GoTest\GoIntegrationsTest\GoIntegrationsTest\bin\Debug\net8.0\RestSharp.dll
J:\PersonalProjects\GoTest\GoIntegrationsTest\GoIntegrationsTest\obj\Debug\net8.0\GoIntegrationsTest.csproj.AssemblyReference.cache
J:\PersonalProjects\GoTest\GoIntegrationsTest\GoIntegrationsTest\obj\Debug\net8.0\GoIntegrationsTest.GeneratedMSBuildEditorConfig.editorconfig
J:\PersonalProjects\GoTest\GoIntegrationsTest\GoIntegrationsTest\obj\Debug\net8.0\GoIntegrationsTest.AssemblyInfoInputs.cache
J:\PersonalProjects\GoTest\GoIntegrationsTest\GoIntegrationsTest\obj\Debug\net8.0\GoIntegrationsTest.AssemblyInfo.cs
J:\PersonalProjects\GoTest\GoIntegrationsTest\GoIntegrationsTest\obj\Debug\net8.0\GoIntegrationsTest.csproj.CoreCompileInputs.cache
J:\PersonalProjects\GoTest\GoIntegrationsTest\GoIntegrationsTest\obj\Debug\net8.0\GoIntegr.E26C9FF2.Up2Date
J:\PersonalProjects\GoTest\GoIntegrationsTest\GoIntegrationsTest\obj\Debug\net8.0\GoIntegrationsTest.dll
J:\PersonalProjects\GoTest\GoIntegrationsTest\GoIntegrationsTest\obj\Debug\net8.0\refint\GoIntegrationsTest.dll
J:\PersonalProjects\GoTest\GoIntegrationsTest\GoIntegrationsTest\obj\Debug\net8.0\GoIntegrationsTest.pdb
J:\PersonalProjects\GoTest\GoIntegrationsTest\GoIntegrationsTest\obj\Debug\net8.0\GoIntegrationsTest.genruntimeconfig.cache
J:\PersonalProjects\GoTest\GoIntegrationsTest\GoIntegrationsTest\obj\Debug\net8.0\ref\GoIntegrationsTest.dll
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
b647075a998f1bdbb273fbcb6f16e2b10a88bab4313860264e65bec5daaacb8c
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"format": 1,
"restore": {
"J:\\PersonalProjects\\GoTest\\GoIntegrationsTest\\GoIntegrationsTest\\GoIntegrationsTest.csproj": {}
},
"projects": {
"J:\\PersonalProjects\\GoTest\\GoIntegrationsTest\\GoIntegrationsTest\\GoIntegrationsTest.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "J:\\PersonalProjects\\GoTest\\GoIntegrationsTest\\GoIntegrationsTest\\GoIntegrationsTest.csproj",
"projectName": "GoIntegrationsTest",
"projectPath": "J:\\PersonalProjects\\GoTest\\GoIntegrationsTest\\GoIntegrationsTest\\GoIntegrationsTest.csproj",
"packagesPath": "C:\\Users\\PSVMain\\.nuget\\packages\\",
"outputPath": "J:\\PersonalProjects\\GoTest\\GoIntegrationsTest\\GoIntegrationsTest\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\PSVMain\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net8.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"C:\\Program Files\\dotnet\\library-packs": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"dependencies": {
"RestSharp": {
"target": "Package",
"version": "[110.2.0, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.204/PortableRuntimeIdentifierGraph.json"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\PSVMain\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.9.2</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\PSVMain\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)system.text.json\7.0.2\buildTransitive\net6.0\System.Text.Json.targets" Condition="Exists('$(NuGetPackageRoot)system.text.json\7.0.2\buildTransitive\net6.0\System.Text.Json.targets')" />
</ImportGroup>
</Project>
Loading