Get Phone Number
const options = {method: 'GET'};
fetch('https://gp-auth-module.prod.gnosispay.com/phone', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://gp-auth-module.prod.gnosispay.com/phoneimport requests
url = "https://gp-auth-module.prod.gnosispay.com/phone"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://gp-auth-module.prod.gnosispay.com/phone"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://gp-auth-module.prod.gnosispay.com/phone")
.asString();require 'uri'
require 'net/http'
url = URI("https://gp-auth-module.prod.gnosispay.com/phone")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"phone": "<string>",
"countryCode": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Phone
Get Phone Number
Returns the user’s phone number if at least one card was created.
GET
/
phone
Get Phone Number
const options = {method: 'GET'};
fetch('https://gp-auth-module.prod.gnosispay.com/phone', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://gp-auth-module.prod.gnosispay.com/phoneimport requests
url = "https://gp-auth-module.prod.gnosispay.com/phone"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://gp-auth-module.prod.gnosispay.com/phone"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://gp-auth-module.prod.gnosispay.com/phone")
.asString();require 'uri'
require 'net/http'
url = URI("https://gp-auth-module.prod.gnosispay.com/phone")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"phone": "<string>",
"countryCode": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}⌘I