feat
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
info:
|
||||
name: Fulfill Referral Reward
|
||||
type: http
|
||||
seq: 12
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: "{{baseUrl}}/admin/referral-rewards/:user/fulfill"
|
||||
params:
|
||||
- name: user
|
||||
value: "1"
|
||||
type: path
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"product_id": 1
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
docs: |-
|
||||
Admin only. Grants the free month to the user (path param = user id) and
|
||||
marks it granted so it only happens once. product_id is optional: omit it to
|
||||
auto-grant the meditation package's monthly product.
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
@@ -0,0 +1,21 @@
|
||||
info:
|
||||
name: Pending Referral Rewards
|
||||
type: http
|
||||
seq: 11
|
||||
|
||||
http:
|
||||
method: GET
|
||||
url: "{{baseUrl}}/admin/referral-rewards"
|
||||
body:
|
||||
type: none
|
||||
auth: inherit
|
||||
|
||||
docs: |-
|
||||
Admin only. Lists users (کد معرف) who reached the successful-invite target
|
||||
and have not yet been granted their free-month subscription.
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+1
-1
@@ -14,7 +14,7 @@ http:
|
||||
value: admin@gmail.com
|
||||
- name: password
|
||||
type: text
|
||||
value: "96969"
|
||||
value: "969699"
|
||||
- name: package_name
|
||||
type: text
|
||||
value: com.approagency.meditation
|
||||
|
||||
@@ -43,6 +43,10 @@ http:
|
||||
type: text
|
||||
value: ""
|
||||
disabled: true
|
||||
- name: referrer_code
|
||||
type: text
|
||||
value: ""
|
||||
disabled: true
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
|
||||
@@ -5,10 +5,10 @@ info:
|
||||
|
||||
http:
|
||||
method: GET
|
||||
url: "{{baseUrl}}/status?package_name=com.approagency.ai"
|
||||
url: "{{baseUrl}}/status?package_name=com.approagency.meditation"
|
||||
params:
|
||||
- name: package_name
|
||||
value: com.approagency.ai
|
||||
value: com.approagency.meditation
|
||||
type: query
|
||||
auth: inherit
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ http:
|
||||
url: "{{baseUrl}}/package-names/:name/products"
|
||||
params:
|
||||
- name: name
|
||||
value: com.approagency.meditation
|
||||
value: com.approagency.toolbox
|
||||
type: path
|
||||
auth: inherit
|
||||
|
||||
|
||||
+2
-2
@@ -21,14 +21,14 @@ request:
|
||||
variables:
|
||||
- name: baseUrl
|
||||
value: http://localhost:8000/api
|
||||
disabled: true
|
||||
- name: token
|
||||
value: https://api.approagency.ir
|
||||
disabled: true
|
||||
- name: baseUrl
|
||||
value: https://api.approagency.ir/api
|
||||
disabled: true
|
||||
- name: token
|
||||
value: ""
|
||||
value: 8|REv3lOtv8xTiL5Z6BoWiqfsWpc4daSpNfQrhYTEe261e6f9a
|
||||
- name: baseUrl
|
||||
value: ""
|
||||
disabled: true
|
||||
|
||||
Reference in New Issue
Block a user