ggez-banking-sdk
Advanced tools
Comparing version 0.0.87 to 0.0.88
@@ -84,2 +84,8 @@ import { LoginWithGoogleInterface, SignUpInterface, SignUpWithGoogleInterface, LoginRequestInterface, LoginDeviceCredentialInterface } from "../interfaces/signInterface"; | ||
}>; | ||
getTwitterSpotlightPostIds: () => Promise<{ | ||
response: any; | ||
newUser: any; | ||
message: any; | ||
status: string; | ||
}>; | ||
}; |
@@ -285,2 +285,27 @@ "use strict"; | ||
}; | ||
const getTwitterSpotlightPostIds = async () => { | ||
try { | ||
let headersData = { | ||
isUrlEncoded: false, | ||
token: "", | ||
header: false, | ||
}; | ||
let headers = headerConfig(headersData); | ||
const response = await restApi_1.default.restApi(nodeUrl, "get", "api/promotion/spotlight/twitter", headers); | ||
return { | ||
response: response, | ||
newUser: null, | ||
message: response?.data?.result?.friendly_message, | ||
status: "success", | ||
}; | ||
} | ||
catch (error) { | ||
return { | ||
response: error.response, | ||
newUser: null, | ||
message: error.message, | ||
status: "failed", | ||
}; | ||
} | ||
}; | ||
return { | ||
@@ -295,4 +320,5 @@ GetUser, | ||
getPromotionDataByCode, | ||
getTwitterSpotlightPostIds, | ||
}; | ||
}; | ||
exports.useAuth = useAuth; |
{ | ||
"name": "ggez-banking-sdk", | ||
"version": "0.0.87", | ||
"version": "0.0.88", | ||
"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,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
778466
25618