ggez-banking-sdk 0.0.86 → 0.0.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -282,6 +282,31 @@ const useAuth = (baseUrl, nodeUrl, userInfo, tokenData, programId, geoCoordinate
|
|
|
282
282
|
};
|
|
283
283
|
}
|
|
284
284
|
};
|
|
285
|
+
const getTwitterSpotlightPostIds = async () => {
|
|
286
|
+
try {
|
|
287
|
+
let headersData = {
|
|
288
|
+
isUrlEncoded: false,
|
|
289
|
+
token: "",
|
|
290
|
+
header: false,
|
|
291
|
+
};
|
|
292
|
+
let headers = headerConfig(headersData);
|
|
293
|
+
const response = await restApi_1.default.restApi(nodeUrl, "get", "api/promotion/spotlight/twitter", headers);
|
|
294
|
+
return {
|
|
295
|
+
response: response,
|
|
296
|
+
newUser: null,
|
|
297
|
+
message: response?.data?.result?.friendly_message,
|
|
298
|
+
status: "success",
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
catch (error) {
|
|
302
|
+
return {
|
|
303
|
+
response: error.response,
|
|
304
|
+
newUser: null,
|
|
305
|
+
message: error.message,
|
|
306
|
+
status: "failed",
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
};
|
|
285
310
|
return {
|
|
286
311
|
GetUser,
|
|
287
312
|
SignUpApi,
|
|
@@ -291,6 +316,7 @@ const useAuth = (baseUrl, nodeUrl, userInfo, tokenData, programId, geoCoordinate
|
|
|
291
316
|
LoginWithGoogle,
|
|
292
317
|
incrementPromotionParticipants,
|
|
293
318
|
getPromotionDataByCode,
|
|
319
|
+
getTwitterSpotlightPostIds,
|
|
294
320
|
};
|
|
295
321
|
};
|
|
296
322
|
exports.useAuth = useAuth;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ggez-banking-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.88",
|
|
4
4
|
"description": "A Node.js package to handle GGEZ Banking API endpoints, Simplify the process of managing CRUD operations with this efficient and easy-to-use package.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|