Title: How to use with Retrofit · Issue #1066 · scribejava/scribejava · GitHub
Open Graph Title: How to use with Retrofit · Issue #1066 · scribejava/scribejava
X Title: How to use with Retrofit · Issue #1066 · scribejava/scribejava
Description: Hello, Can we use scribe with retrofit ? I'm using retrofit in my app and i want to pass client for it before i was using signspot for it but unfortunately it gives me 401 error. and my current code is look like below: ``` val consumerKe...
Open Graph Description: Hello, Can we use scribe with retrofit ? I'm using retrofit in my app and i want to pass client for it before i was using signspot for it but unfortunately it gives me 401 error. and my current cod...
X Description: Hello, Can we use scribe with retrofit ? I'm using retrofit in my app and i want to pass client for it before i was using signspot for it but unfortunately it gives me 401 error. and my current...
Opengraph URL: https://github.com/scribejava/scribejava/issues/1066
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How to use with Retrofit","articleBody":"Hello,\r\nCan we use scribe with retrofit ?\r\nI'm using retrofit in my app and i want to pass client for it\r\nbefore i was using signspot for it but unfortunately it gives me 401 error. and my current code is look like below:\r\n\r\n ```\r\n val consumerKey = \"Key\"\r\n val consumerSecret = \"Secret Key\"\r\n val accessToken = \"AccessToke\"\r\n val tokenSecret = \"TokenSecret\"\r\n\r\n val consumer = OkHttpOAuthConsumer(consumerKey, consumerSecret)\r\n consumer.setTokenWithSecret(accessToken, tokenSecret)\r\n\r\n val interceptor = HttpLoggingInterceptor()\r\n interceptor.setLevel(HttpLoggingInterceptor.Level.BODY)\r\n val client: OkHttpClient = OkHttpClient.Builder().connectTimeout(20, TimeUnit.SECONDS)\r\n .writeTimeout(20, TimeUnit.SECONDS).readTimeout(30, TimeUnit.SECONDS)\r\n .addInterceptor(SigningInterceptor(consumer))\r\n .addInterceptor(interceptor).build()\r\n\r\n Retrofit.Builder().baseUrl(baseUrl).client(client).addConverterFactory(GsonConverterFactory.create()).build()\r\n \r\n```","author":{"url":"https://github.com/PratikFagadiya","@type":"Person","name":"PratikFagadiya"},"datePublished":"2024-01-18T10:23:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1066/scribejava/issues/1066"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d55ca127-f6c3-315b-e939-f9998094bb71 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9E04:11F8A0:35E8929:49AC026:6972CAA5 |
| html-safe-nonce | 933b194a767cc7a30a974f3622e6fd877fe7f51da6d67732b09f968887fcf386 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTA0OjExRjhBMDozNUU4OTI5OjQ5QUMwMjY6Njk3MkNBQTUiLCJ2aXNpdG9yX2lkIjoiNzI3OTQ1MzMyNjMwNTA1MzM0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 33a82475c4a063fd2a346fecb6387e1cdff7b2adb72c9a07e25234979a3d0cdc |
| hovercard-subject-tag | issue:2087973047 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/scribejava/scribejava/1066/issue_layout |
| twitter:image | https://opengraph.githubassets.com/131ef2c2f1a4529c8347f5260a5df3455c09da523ce8fb751c8796dc46906313/scribejava/scribejava/issues/1066 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/131ef2c2f1a4529c8347f5260a5df3455c09da523ce8fb751c8796dc46906313/scribejava/scribejava/issues/1066 |
| og:image:alt | Hello, Can we use scribe with retrofit ? I'm using retrofit in my app and i want to pass client for it before i was using signspot for it but unfortunately it gives me 401 error. and my current cod... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | PratikFagadiya |
| hostname | github.com |
| expected-hostname | github.com |
| None | e5abb0753dbd4190d15d366a819b0ca85f68a7e5bbe3d32213b346c41685c80a |
| turbo-cache-control | no-preview |
| go-import | github.com/scribejava/scribejava git https://github.com/scribejava/scribejava.git |
| octolytics-dimension-user_id | 15140551 |
| octolytics-dimension-user_login | scribejava |
| octolytics-dimension-repository_id | 889932 |
| octolytics-dimension-repository_nwo | scribejava/scribejava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 889932 |
| octolytics-dimension-repository_network_root_nwo | scribejava/scribejava |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 88896109b054799a7f22afaeee541d00f9170dc3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width