Rapid account: MP Apis

MP Apis / micaelbh

Discussions

9
Title
Created at (Click to sort ascending)
A
4
Hello! It is working normally. If you have any questions, just let us know. We hope that our API can help you greatly! א׳ 3:15 31/3/24
A
4
Hello! It is working normally. If you have any questions, just let us know. We hope that our API can help you greatly! א׳ 3:15 31/3/24
A
2
We will soon add the endpoint to process the spintax, but you can use the code below to process the spintax in order to choose the available options in javascript: var text = '{{Hello|Hi|Hola}, How {have you been|are you doing}? ' + 'Take care. {{Thanks and|Best} Regards|Cheers|Thanks}'; var matches, options, random; var regEx = new RegExp(/{([^{}]+?)}/); while ((matches = regEx.exec(text)) !== null) { options = matches[1].split('|'); random = Math.floor(Math.random() * options.length); text = text.replace(matches[0], options[random]); } console.log(text); ב׳ 7:10 20/2/23
A
2
We will soon add the endpoint to process the spintax, but you can use the code below to process the spintax in order to choose the available options in javascript: var text = '{{Hello|Hi|Hola}, How {have you been|are you doing}? ' + 'Take care. {{Thanks and|Best} Regards|Cheers|Thanks}'; var matches, options, random; var regEx = new RegExp(/{([^{}]+?)}/); while ((matches = regEx.exec(text)) !== null) { options = matches[1].split('|'); random = Math.floor(Math.random() * options.length); text = text.replace(matches[0], options[random]); } console.log(text); ב׳ 7:10 20/2/23
Q
1
Character limit per request ו׳ 8:58 19/8/22
A
1
For me too. the same problem recurs for a few days. ב׳ 5:08 4/4/22