Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
odysseus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixir
pd2af
odysseus
Commits
e1f20d85
Commit
e1f20d85
authored
5 years ago
by
Denis Shirshov
Browse files
Options
Downloads
Patches
Plain Diff
76.2
parent
c3911c52
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scrap/vk.rkt
+11
-11
11 additions, 11 deletions
scrap/vk.rkt
with
11 additions
and
11 deletions
scrap/vk.rkt
+
11
−
11
View file @
e1f20d85
...
...
@@ -4,7 +4,7 @@
(
require
"../../settings/APIs.rkt"
)
(
require
net/url
)
(
require
json
)
(
require
browser/external
)
;
(require browser/external)
(
require
compatibility/defmacro
)
(
define
status-output
(
make-parameter
#f
))
...
...
@@ -17,16 +17,16 @@
; gets a new access_token if old is expired
; after launching this function it opens the browser, where you should accept the app permissions and then, on the redirected page, check access_token in the GET parameters in the browser address string
(
define
(
authenticate-through-browser
)
(
let*
((
auth-url
"https://oauth.vk.com/authorize"
)
(
redirect_uri
""
)
(
display
"page"
)
(
scope
#b111111011110111011111
)
(
response_type
"token"
)
(
v
"5.8"
)
(
state
"odysseus"
)
(
request-string
(
url-with-parameters
auth-url
CID
redirect_uri
display
scope
response_type
v
state
)))
(
send-url
request-string
)))
;
(define (authenticate-through-browser)
;
(let* ((auth-url "https://oauth.vk.com/authorize")
;
(redirect_uri "")
;
(display "page")
;
(scope #b111111011110111011111)
;
(response_type "token")
;
(v "5.8")
;
(state "odysseus")
;
(request-string (url-with-parameters auth-url CID redirect_uri display scope response_type v state)))
;
(send-url request-string)))
; (json->hash (get-url request-string))))
(
define-catch
(
dump-ids-to-file
ids
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment