Skip to content

Commit

Permalink
Update HTTP request in Dsl.CE2.fsx to fetch PXL Clock details and mod…
Browse files Browse the repository at this point in the history
…ify JSON structure
  • Loading branch information
SchlenkR authored and SchlenkR committed Dec 20, 2024
1 parent bf1bd2a commit 62f0798
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/FsHttp/Dsl.CE2.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,22 @@ module Body =



let res =
http {
GET "http://www.pxl-clock.com"
POST "https://github.com/CuminAndPotato/PXL-JAM"

AcceptLanguage "en"
Authorization "credOuter"
if true then
Authorization "credInner"

body
json """ { name: "Hans" } """
json """
{
name: "PXL Clock",
description: "A Beautiful and Fun Clock",
programmingLanguage: [
"F#", "C#", "JavaScript", "Python", "TypeScript" ]
}
"""
}

1 change: 1 addition & 0 deletions src/FsHttp/FsHttp.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<Compile Include="FsiInit.fs" />
<Compile Include="Dsl.fs" />
<Compile Include="Dsl.CE.fs" />
<!-- <Compile Include="Dsl.CE2.fs" /> -->
<Compile Include="Operators.fs" />
<Compile Include="Extensions.fs" />
</ItemGroup>
Expand Down

0 comments on commit 62f0798

Please sign in to comment.