Skip to content

Instantly share code, notes, and snippets.

<?php
function tryExecute(callable $func, $tries = 3)
{
while (true) {
try {
return $func();
} catch (\Throwable $e) {
$tries--;
UPDATE action SET type = 'week-price' WHERE discr = 'promotion' AND id = 11;
UPDATE action SET type = 'own-import' WHERE discr = 'promotion' AND id = 12;
UPDATE action SET type = 'hot-offer' WHERE discr = 'promotion' AND id = 13;
UPDATE action SET type = 'theme-weeks' WHERE discr = 'promotion' AND id = 14;
UPDATE action SET type = 'children-weeks' WHERE discr = 'promotion' AND id = 15;
UPDATE action SET type = 'default' WHERE discr = 'promotion' AND (type IS NULL OR type = '');
[
{
"action": "IMPORT_STARTED",
"data": { "accountId": "id", "total": "int" }
},
{
"action": "IMPORT_IN_PROGRESS",
"data": { "accountId": "id", "total": "int", "progress": "int" }
},
{
{
"memberId": 4053126,
"subscribes": {
"emailDistribution": 1,
"surveyParticipation": 1,
"email": "",
"name": "Test name",
"subscribe": [
{
"name": "SILPO_NEWPROD",
<?php
namespace ApiBundle\Service\API;
use AppBundle\Utils\ProjectErrorCode;
/**
* Class InternalApiErrors
*/
class InternalApiErrors
REQUEST POST /Subscribes/SetMemberSubscribes
{
"memberId": 3883532,
"subscribes": {
"emailDistribution": 1,
"surveyParticipation": 1,
"email": "developer.youshido@gmail.com",
"name": "test",
"subscribe": [
{
{
"memberId": 15506221,
"memberData": {
"yourAssistance": 0,
"deliveryLocation": 2,
"address": {
"postIndex": "02091",
"region": "Київ",
"city": "Київ",
"cityType": "місто",
Imap:
mutation {
createAccount(
type:IMAP,
credentials: {
email:"",
password:"",
host:"mail.digitalcares.com"
}
) {
5LpIshluMFRtGjjNGyXT3jgN4Q1GKocLT9TrWrp_bqk
tariff plans:
- trial
- basic [3 accounts, 10 gb]
- pro
- max
- custom [n accounts, m gb]
payment period:
- monthly
- yearly