Skip to content

Commit

Permalink
fix rewards server captcha snippets
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Earnshaw <[email protected]>
  • Loading branch information
nearnshaw authored Dec 7, 2023
1 parent de73574 commit aa3fc61
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions content/creator/rewards/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ import { signedFetch } from '@decentraland/SignedFetch'
import { getUserData } from '@decentraland/Identity'

const user = await getUserData()
const request = await signedFetch(
'https://rewards.decentraland.org/api/rewards',
{
const request = await signedFetch({
url:'https://rewards.decentraland.org/api/rewards',
init:{
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand All @@ -129,7 +129,7 @@ const request = await signedFetch(
beneficiary: user.publicKey,
}),
}
)
})

const response = await request.json()
console.log(response)
Expand Down Expand Up @@ -204,9 +204,9 @@ import { signedFetch } from '@decentraland/SignedFetch'
import { getUserData } from '@decentraland/Identity'

const user = await getUserData()
const request = await signedFetch(
'https://rewards.decentraland.org/api/rewards',
{
const request = await signedFetch({
url: 'https://rewards.decentraland.org/api/rewards',
init: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand All @@ -218,7 +218,7 @@ const request = await signedFetch(
captcha_value: '[CAPTCHA_VALUE]', // "dbdcbf" or "DBDCBF"
}),
}
)
})

const response = await request.json()
console.log(response)
Expand Down Expand Up @@ -277,9 +277,9 @@ import { getUserData } from '@decentraland/Identity'

const user = await getUserData()
const realm = await getCurrentRealm()
const request = await signedFetch(
'https://rewards.decentraland.org/api/rewards',
{
const request = await signedFetch({
url: 'https://rewards.decentraland.org/api/rewards',
init: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand All @@ -290,7 +290,7 @@ const request = await signedFetch(
catalyst: realm.domain,
}),
}
)
})

const response = await request.json()
console.log(response)
Expand Down

0 comments on commit aa3fc61

Please sign in to comment.