Skip to content

Commit

Permalink
Nothing is working yet.
Browse files Browse the repository at this point in the history
  • Loading branch information
logankilpatrick committed Nov 23, 2019
1 parent 4914d4a commit 6c20df0
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 9 deletions.
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
*.jl.cov
*.jl.*.cov
*.jl.mem
deps/deps.jl
.DS_Store
/Manifest.toml
/dev/
4 changes: 1 addition & 3 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
MIT License

Copyright (c) 2019 Logan Kilpatrick
Copyright (c) 2019 Logan Kilpatrick <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
13 changes: 13 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name = "Stackoverflow"
uuid = "1a8df32f-26ad-40b8-8029-212bc012bd57"
authors = ["Logan Kilpatrick <[email protected]>"]
version = "0.1.0"

[compat]
julia = "1"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test"]
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# Stackoverflow.jl
An API wrapper for Stack Overflow.
# Stackoverflow
5 changes: 5 additions & 0 deletions src/Stackoverflow.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module Stackoverflow

include("requests.jl")

end # module
9 changes: 9 additions & 0 deletions src/requests.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using HTTP
using Revise

r = HTTP.request("GET", "https://api.stackexchange.com/2.2/questions?order=desc&sort=activity&tagged=Julia&site=stackoverflow"; verbose=3)
println(typeof(r))
r = Vector(r)

#println(r.status)
#println(String(r.body))
6 changes: 6 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
using Stackoverflow
using Test

@testset "Stackoverflow.jl" begin
# Write your own tests here.
end

0 comments on commit 6c20df0

Please sign in to comment.