Recycling
Recycling allows you to recycle your weapons and equipment at weaponcrafting, gearcrafting and jewelrycrafting workshops.
This lets you get back some of the item's resources. The minimum is resource per recycled item, chosen at random from all the items in the craft.
You can recycle an item using this POST request.
cURL
curl --request POST \
--url https://api.artifactsmmo.com/my/{name}/action/recycling \
--header 'Accept: application/json' \
--header 'Authorization: Bearer INSERT_YOUR_TOKEN_HERE' \
--header 'Content-Type: application/json' \
--data '{
"code": "string",
"quantity": 1
}'
Javascript
const url = 'https://api.artifactsmmo.com/my/{name}/action/recycling';
const options = {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Accept: 'application/json',
Authorization: 'Bearer INSERT_YOUR_TOKEN_HERE'
},
body: '{"code":"string","quantity":1}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}