|
@@ -48,6 +48,75 @@ zFePUMXy1bFghAfzNKlrc5XgH4ixeeMh3cDtU97K |
|
@@ -48,6 +48,75 @@ zFePUMXy1bFghAfzNKlrc5XgH4ixeeMh3cDtU97K |
|
48
|
}
|
48
|
}
|
|
49
|
|
49
|
|
|
50
|
/**
|
50
|
/**
|
|
|
|
51
|
+ * @name :(创建子账户配置文件)post_create_profiles
|
|
|
|
52
|
+ * @author :lyh
|
|
|
|
53
|
+ * @method :post
|
|
|
|
54
|
+ * @time :2023/5/5 15:16
|
|
|
|
55
|
+ */
|
|
|
|
56
|
+ public function post_create_profiles($data){
|
|
|
|
57
|
+ $param = [
|
|
|
|
58
|
+ 'title'=>$data['title'],
|
|
|
|
59
|
+ ];
|
|
|
|
60
|
+ $url = $this->path.'/api/profiles/profile';
|
|
|
|
61
|
+ return $this->http_click('post',$url,$param);
|
|
|
|
62
|
+ }
|
|
|
|
63
|
+ /**
|
|
|
|
64
|
+ * @name :(删除子账户配置文件)deleted_profiles
|
|
|
|
65
|
+ * @author :lyh
|
|
|
|
66
|
+ * @method :post
|
|
|
|
67
|
+ * @time :2023/5/5 15:16
|
|
|
|
68
|
+ */
|
|
|
|
69
|
+ public function deleted_profiles($data){
|
|
|
|
70
|
+ $param = [
|
|
|
|
71
|
+ 'title'=>$data['title'],
|
|
|
|
72
|
+ 'profileKey'=>$this->profile_key,
|
|
|
|
73
|
+ ];
|
|
|
|
74
|
+ $url = $this->path.'/api/profiles/profile';
|
|
|
|
75
|
+ return $this->http_click('delete',$url,$param);
|
|
|
|
76
|
+ }
|
|
|
|
77
|
+
|
|
|
|
78
|
+ /**
|
|
|
|
79
|
+ * @name :(跳转第三方生成jwt令牌)post_generate_jwt
|
|
|
|
80
|
+ * @author :lyh
|
|
|
|
81
|
+ * @method :post
|
|
|
|
82
|
+ * @time :2023/5/5 18:07 https://app.ayrshare.com/api/profiles/generateJWT
|
|
|
|
83
|
+ */
|
|
|
|
84
|
+ public function post_generate_jwt($data,$domain = 'globalso'){
|
|
|
|
85
|
+ $param = [
|
|
|
|
86
|
+ 'domain'=>$domain,
|
|
|
|
87
|
+ 'privateKey'=>$this->private_key,
|
|
|
|
88
|
+ 'profileKey'=>$data['profileKey'],
|
|
|
|
89
|
+// 'logout'=>true
|
|
|
|
90
|
+ ];
|
|
|
|
91
|
+ $url = $this->path.'/api/profiles/generateJWT';
|
|
|
|
92
|
+ return $this->http_click('post',$url,$param);
|
|
|
|
93
|
+ }
|
|
|
|
94
|
+
|
|
|
|
95
|
+ /**
|
|
|
|
96
|
+ * @name :(获取当前用户的配置文件)get_profiles
|
|
|
|
97
|
+ * @author :lyh
|
|
|
|
98
|
+ * @method :post
|
|
|
|
99
|
+ * @time :2023/5/6 16:01
|
|
|
|
100
|
+ */
|
|
|
|
101
|
+ public function get_profiles(){
|
|
|
|
102
|
+
|
|
|
|
103
|
+ }
|
|
|
|
104
|
+ /**
|
|
|
|
105
|
+ * @name :(通过用户名获取社交账号)get_brand_user
|
|
|
|
106
|
+ * @author :lyh https://app.ayrshare.com/api/brand/byUser
|
|
|
|
107
|
+ * @method :post
|
|
|
|
108
|
+ * @time :2023/5/5 17:32
|
|
|
|
109
|
+ */
|
|
|
|
110
|
+ public function get_brand_user($param){
|
|
|
|
111
|
+ //[[platforms=>'instagram','instagramUser'=>'user']]
|
|
|
|
112
|
+ $str = '';
|
|
|
|
113
|
+ foreach ($param as $k =>$v){
|
|
|
|
114
|
+ //platforms[0]=instagram&platforms[1]=twitter&twitterUser=ayrshare&instagramUser=nygiants',
|
|
|
|
115
|
+ }
|
|
|
|
116
|
+ $url = $this->path.'/api/brand/byUser?'.$str;
|
|
|
|
117
|
+ return $this->http_click('get',$url);
|
|
|
|
118
|
+ }
|
|
|
|
119
|
+ /**
|
|
51
|
* @name :获取过去30天发布的历史记录(1-30)
|
120
|
* @name :获取过去30天发布的历史记录(1-30)
|
|
52
|
* @author :lyh
|
121
|
* @author :lyh
|
|
53
|
* @method :get
|
122
|
* @method :get
|
|
@@ -145,67 +214,6 @@ zFePUMXy1bFghAfzNKlrc5XgH4ixeeMh3cDtU97K |
|
@@ -145,67 +214,6 @@ zFePUMXy1bFghAfzNKlrc5XgH4ixeeMh3cDtU97K |
|
145
|
}
|
214
|
}
|
|
146
|
|
215
|
|
|
147
|
/**
|
216
|
/**
|
|
148
|
- * @name :(创建子账户配置文件)post_create_profiles
|
|
|
|
149
|
- * @author :lyh
|
|
|
|
150
|
- * @method :post
|
|
|
|
151
|
- * @time :2023/5/5 15:16
|
|
|
|
152
|
- */
|
|
|
|
153
|
- public function post_create_profiles($data){
|
|
|
|
154
|
- $param = [
|
|
|
|
155
|
- 'title'=>$data['title'],
|
|
|
|
156
|
- ];
|
|
|
|
157
|
- $url = $this->path.'/api/profiles/profile';
|
|
|
|
158
|
- return $this->http_click('post',$url,$param);
|
|
|
|
159
|
- }
|
|
|
|
160
|
- /**
|
|
|
|
161
|
- * @name :(删除子账户配置文件)deleted_profiles
|
|
|
|
162
|
- * @author :lyh
|
|
|
|
163
|
- * @method :post
|
|
|
|
164
|
- * @time :2023/5/5 15:16
|
|
|
|
165
|
- */
|
|
|
|
166
|
- public function deleted_profiles($data){
|
|
|
|
167
|
- $param = [
|
|
|
|
168
|
- 'title'=>$data['title'],
|
|
|
|
169
|
- 'profileKey'=>$this->profile_key,
|
|
|
|
170
|
- ];
|
|
|
|
171
|
- $url = $this->path.'/api/profiles/profile';
|
|
|
|
172
|
- return $this->http_click('delete',$url,$param);
|
|
|
|
173
|
- }
|
|
|
|
174
|
-
|
|
|
|
175
|
- /**
|
|
|
|
176
|
- * @name :(通过用户名获取社交账号)get_brand_user
|
|
|
|
177
|
- * @author :lyh https://app.ayrshare.com/api/brand/byUser
|
|
|
|
178
|
- * @method :post
|
|
|
|
179
|
- * @time :2023/5/5 17:32
|
|
|
|
180
|
- */
|
|
|
|
181
|
- public function get_brand_user($param){
|
|
|
|
182
|
- //[[platforms=>'instagram','instagramUser'=>'user']]
|
|
|
|
183
|
- $str = '';
|
|
|
|
184
|
- foreach ($param as $k =>$v){
|
|
|
|
185
|
- //platforms[0]=instagram&platforms[1]=twitter&twitterUser=ayrshare&instagramUser=nygiants',
|
|
|
|
186
|
- }
|
|
|
|
187
|
- $url = $this->path.'/api/brand/byUser?'.$str;
|
|
|
|
188
|
- return $this->http_click('get',$url);
|
|
|
|
189
|
- }
|
|
|
|
190
|
-
|
|
|
|
191
|
- /**
|
|
|
|
192
|
- * @name :(跳转第三方生成jwt令牌)post_generate_jwt
|
|
|
|
193
|
- * @author :lyh
|
|
|
|
194
|
- * @method :post
|
|
|
|
195
|
- * @time :2023/5/5 18:07 https://app.ayrshare.com/api/profiles/generateJWT
|
|
|
|
196
|
- */
|
|
|
|
197
|
- public function post_generate_jwt($data,$domain = 'globalso'){
|
|
|
|
198
|
- $param = [
|
|
|
|
199
|
- 'domain'=>$domain,
|
|
|
|
200
|
- 'privateKey'=>$this->private_key,
|
|
|
|
201
|
- 'profileKey'=>$data['profileKey'],
|
|
|
|
202
|
- 'logout'=>true
|
|
|
|
203
|
- ];
|
|
|
|
204
|
- $url = $this->path.'/api/profiles/generateJWT';
|
|
|
|
205
|
- return $this->http_click('post',$url,$param);
|
|
|
|
206
|
- }
|
|
|
|
207
|
-
|
|
|
|
208
|
- /**
|
|
|
|
209
|
* 发送http post,get,put,delete请求
|
217
|
* 发送http post,get,put,delete请求
|
|
210
|
* @param type $url
|
218
|
* @param type $url
|
|
211
|
* @param type $post_data
|
219
|
* @param type $post_data
|