-
Notifications
You must be signed in to change notification settings - Fork 1
/
load.sh
149 lines (143 loc) · 3.48 KB
/
load.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
curl -X POST "localhost:9200/leadlet/deal/" -H 'Content-Type: application/json' -d'
{
"id" : 200,
"title" : "deal1",
"pipeline_id" : 1,
"stage_id" : 12,
"create_date" : "2018-07-15T14:12:12",
"lost_reason" : "başka firma tercihi",
"score" : 92,
"products" : [
"product1",
"product2"
],
"channel" : "Social Media",
"source" : "Instagram",
"value" : 12.002,
"status" : "open"
}
'
curl -X POST "localhost:9200/leadlet/deal/" -H 'Content-Type: application/json' -d'
{
"id" : 201,
"title" : "deal8",
"pipeline_id" : 1,
"stage_id" : 12,
"create_date" : "2018-07-15T14:12:12",
"lost_reason" : "başka firma tercihi",
"score" : 92,
"products" : [
"product1",
"product2"
],
"channel" : "Social Media",
"source" : "Instagram",
"value" : 12.002,
"status" : "open"
}
'
curl -X POST "localhost:9200/leadlet/deal/" -H 'Content-Type: application/json' -d'
{
"id" : 202,
"title" : "deal2",
"pipeline_id" : 2,
"stage_id" : 101,
"create_date" : "2018-06-15T14:12:12",
"lost_reason" : "yetersiz ürün",
"score" : 32,
"products" : [
"product1"
],
"channel" : "Social Media",
"source" : "Instagram",
"value" : 12.002,
"status" : "closed"
}
'
curl -X POST "localhost:9200/leadlet/deal/" -H 'Content-Type: application/json' -d'
{
"id" : 203,
"title" : "deal3",
"pipeline_id" : 1,
"stage_id" : 102,
"create_date" : "2018-03-15T14:12:12",
"score" : 32,
"products" : [
"product1"
],
"channel" : "Social Media",
"source" : "Facebook",
"value" : 20,
"status" : "open"
}
'
curl -X POST "localhost:9200/leadlet/deal/" -H 'Content-Type: application/json' -d'
{
"id" : 204,
"title" : "deal4",
"pipeline_id" : 1,
"stage_id" : 103,
"create_date" : "2018-07-12T14:12:12",
"score" : 32,
"products" : [
"product3"
],
"channel" : "Social Media",
"source" : "Facebook",
"value" : 20,
"status" : "open"
}
'
curl -X POST "localhost:9200/leadlet/deal/" -H 'Content-Type: application/json' -d'
{
"id" : 205,
"title" : "deal5",
"pipeline_id" : 2,
"stage_id" : 18,
"create_date" : "2018-07-12T14:12:12",
"score" : 32,
"products" : [
"product3"
],
"channel" : "Social Media",
"source" : "Facebook",
"value" : 20,
"status" : "open"
}
'
curl -X POST "localhost:9200/leadlet/deal/" -H 'Content-Type: application/json' -d'
{
"id" : 206,
"title" : "deal6",
"pipeline_id" : 2,
"stage_id" : 19,
"create_date" : "2018-07-12T14:12:12",
"score" : 32,
"products" : [
"product3"
],
"channel" : "Facebook Form",
"source" : "Facebook",
"value" : 20,
"status" : "open"
}
'
curl -X POST "localhost:9200/leadlet/deal/" -H 'Content-Type: application/json' -d'
{
"id" : 207,
"title" : "deal7",
"pipeline_id" : 2,
"stage_id" : 100,
"create_date" : "2018-07-12T14:12:12",
"score" : 32,
"products" : [
"product3"
],
"channel" : "Live Chat",
"source" : "Facebook",
"value" : 20,
"status" : "open"
}
'
#curl -X DELETE "localhost:9200/leadlet-*"
curl -u elastic:0SGYXpSLAqHUMpnD4IGsFAy5 -X DELETE "https://8b90cbd3e3a640c4a7088d8a7d161288.europe-west1.gcp.cloud.es.io:9243/leadlet"