Skip to content

Commit 001a9e9

Browse files
committed
Fix readme validation errors
1 parent afcd0e8 commit 001a9e9

File tree

3 files changed

+22
-33
lines changed

3 files changed

+22
-33
lines changed

v0/gettingstarted/sandbox/mocks.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ When using the Sandbox in mock mode, the following rules apply:
3030

3131
| Input | Response Status | Response Body |
3232
|--------------|--------------------|------------------|
33-
| device > **networkAccessIdentifier** / **phoneNumber** / **ipv4Address** / **ipv6Address** ends in **9** | 409 | code: "CONFLICT" <br>message: "Another session is created for the same UE" |
33+
| device > **networkAccessIdentifier** / **phoneNumber** / **ipv4Address** / **ipv6Address** ends in **9** | 409 | code: "CONFLICT"<br/>message: "Another session is created for the same UE" |
3434
| **duration** Not in range **1...86400** seconds | 400 | message: error on duration not in range |
3535
| Valid input | 201 | Provided input adding: sessionId, startedAt, expiresAt, qosStatus, messages |
3636

@@ -48,7 +48,7 @@ Retrieve date
4848

4949
| Input | Response Status | Response Body |
5050
|--------------|--------------------|------------------|
51-
| **phoneNumber** ends in **9** | 409 | code: "CONFLICT" <br>message: "Another request is created for the same phone number" |
51+
| **phoneNumber** ends in **9** | 409 | code: "CONFLICT"<br/>message: "Another request is created for the same phone number" |
5252
| **phoneNumber** ends in **0...8** | 200 | latestSimChange: "2024-01-14T13:16:33.167Z" |
5353

5454
### Device Location Verification (v0.2)
@@ -57,9 +57,9 @@ Retrieve date
5757
|--------------|--------------------|------------------|
5858
| **device** > **networkAccessIdentifier** / **phoneNumber** / **ipv4Address** / **ipv6Address** ends in **4** | 404 | message: Device not found |
5959
| **maxAge** included and > 14400 | 404 | message: Device not found in the given maxAge |
60-
| **maxAge** not included <br>**center** > **latitude** round to integer ends in **0** | 200 | verificationResult: **"UNKNOWN"** |
61-
| **maxAge** included <br>**center** > **latitude** round to integer ends in **0** | 200 | verificationResult: **"UNKNOWN"** <br>lastLocationTime: (30 minutes + maxAge) to now |
62-
| **center** > **latitude** round to integer ends in **1** | 200 | verificationResult: **"PARTIAL"** <br>lastLocationTime: (30 minutes + maxAge) to now <br>matchRate: something between 50 if radius=2 and 99 if radius=200 |
60+
| **maxAge** not included<br/>**center** > **latitude** round to integer ends in **0** | 200 | verificationResult: **"UNKNOWN"** |
61+
| **maxAge** included<br/>**center** > **latitude** round to integer ends in **0** | 200 | verificationResult: **"UNKNOWN"**<br/>lastLocationTime: (30 minutes + maxAge) to now |
62+
| **center** > **latitude** round to integer ends in **1** | 200 | verificationResult: **"PARTIAL"**<br/>lastLocationTime: (30 minutes + maxAge) to now<br/>matchRate: something between 50 if radius=2 and 99 if radius=200 |
6363
| **center** > **latitude** round to integer is **even** | 200 | verificationResult: **"TRUE"** |
6464
| **center** > **latitude** round to integer is **odd** | 200 | verificationResult: **"FALSE"** |
6565

@@ -76,7 +76,7 @@ Retrieve date
7676
| Input | Response Status | Response Body |
7777
|--------------|--------------------|------------------|
7878
| Any invalid input | 400 | message: Details on the invalid input value |
79-
| Valid input | 200 | For every input value, response includes... <br>match: boolean <br>matchScore: 0...100 (only for some keys) <br>Those will be the result of matching the request data with a [mock user persona](https://github.com/camaraproject/KnowYourCustomer/blob/a2575b08550640999614a43dd2146ceab6b6e469/code/API_definitions/kyc-match.yaml#L105) |
79+
| Valid input | 200 | For every input value, response includes...<br/>match: boolean<br/>matchScore: 0...100 (only for some keys)<br/>Those will be the result of matching the request data with a [mock user persona](https://github.com/camaraproject/KnowYourCustomer/blob/a2575b08550640999614a43dd2146ceab6b6e469/code/API_definitions/kyc-match.yaml#L105) |
8080

8181
### KYC Age Verification (v0.1)
8282

@@ -105,4 +105,4 @@ It will determine which mock user persona is used to verify the line holding ten
105105
| Input | Response Status | Response Body |
106106
|--------------|--------------------|------------------|
107107
| **phoneNumber** is **even** | 200 | callInProgress: **false** |
108-
| **phoneNumber** is **odd** | 200 | callInProgress: **true** <br>callStartTime: "2023-07-03T12:27:08.312Z" |
108+
| **phoneNumber** is **odd** | 200 | callInProgress: **true**<br/>callStartTime: "2023-07-03T12:27:08.312Z" |

v0/gettingstarted/sandbox/postmaninteraction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Test the Sandbox with Postman
33
category:
4-
uri: Getting Started
4+
uri: Getti - **'device-local-ip'** - Local IPv4 of a device on the home WiFi network for calls to the home network APIs (e.g. Home Devices QoD). If this is more convenient for you. You can modify the calls in the collection to specify this value in them instead of using the `{{device-local-ip}}` variable. - **'mobile-phone-number'** - Mobile line number for mobile network API calls (e.g. SIM Swap). If it is more convenient for you. You can modify the calls in the collection to indicate this value in them instead of using the `{{mobile-phone-number}}` variable.g Started
55
content:
66
excerpt: >-
77
Learn how to explore the functionality of the Sandbox environment using
@@ -56,7 +56,7 @@ To use an environment in Postmam:
5656

5757
1. Select the desired environment by clicking on the drop-down menu in the top right corner of the interface.
5858
2. The variables defined in the environment will be available for use in collection requests. Collection requests already use the following environment variables in the format
59-
{{variable_name}}. You simply need to edit the environment, after importing it, and modify
59+
`{{variable_name}}`. You simply need to edit the environment, after importing it, and modify
6060
them according to your own test configuration:
6161
- **‘api-gateway-url** - Fixed. Should not be changed if you want to run your tests on the Sandbox. Its value is https://sandbox.opengateway.telefonica.com/apigateway
6262
- **‘application-client-id’** - Value that identifies each of the apps you have registered in the Sandbox. You can check it in the ‘My apps’ section.

v0/gettingstarted/sandbox/usethesandbox.md

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,24 @@ content:
1010
development process and ensure a smooth transition to production.
1111
---
1212

13-
[block:embed]
14-
{
15-
"html": "<iframe class=\"embedly-embed\" src=\"//cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fuo94M3QGkjw%3Ffeature%3Doembed&display_name=YouTube&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Duo94M3QGkjw&image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fuo94M3QGkjw%2Fhqdefault.jpg&type=text%2Fhtml&schema=youtube\" width=\"854\" height=\"480\" scrolling=\"no\" title=\"YouTube embed\" frameborder=\"0\" allow=\"autoplay; fullscreen; encrypted-media; picture-in-picture;\" allowfullscreen=\"true\"></iframe>",
16-
"url": "https://www.youtube.com/watch?v=uo94M3QGkjw",
17-
"title": "Agile and Secure Development with the Telefónica Open Gateway Sandbox",
18-
"favicon": "https://www.youtube.com/favicon.ico",
19-
"image": "https://i.ytimg.com/vi/uo94M3QGkjw/hqdefault.jpg",
20-
"provider": "https://www.youtube.com/",
21-
"href": "https://www.youtube.com/watch?v=uo94M3QGkjw",
22-
"typeOfEmbed": "youtube"
23-
}
24-
[/block]
13+
[![Agile and Secure Development with the Telefónica Open Gateway Sandbox](https://i.ytimg.com/vi/uo94M3QGkjw/hqdefault.jpg)](https://www.youtube.com/watch?v=uo94M3QGkjw)
2514

2615
## Usage modes
2716

2817
- **Production mode**
2918

30-
Although our Sandbox is not a Channel Partner's production environment but a testing environment instead, it can route your API calls to our mobile operators to provide a real response if you test your prototype application from a device connected to one of their networks. That requires that you are the mobile line holder and have the SIM card installed in such device.
19+
Although our Sandbox is not a Channel Partner's production environment but a testing environment instead, it can route your API calls to our mobile operators to provide a real response if you test your prototype application from a device connected to one of their networks. This requires that you are the mobile line holder and have the SIM card installed in such device.
3120

3221
Movistar (Spain) and O2 (Germany) are already available for testing from the Telefónica Open Gateway Sandbox, and other Telefónica operators in other countries will be added soon.
3322

34-
The production mode is disabled by default for Privacy reasons, but you can enable it by filling in your legal information and accepting the terms and conditions in the form that the Sandbox console will offer you for that purpose. You will have to provide some mobile phone numbers of your own which will be added to a whitelist that will allow you to test the APIs in production mode from your own devices and will block API usage accessing someone else's personal data.
23+
The production mode is disabled by default for privacy reasons, but you can enable it by filling in your legal information and accepting the terms and conditions in the form that the Sandbox console will offer you for that purpose. You will have to provide some mobile phone numbers of your own which will be added to a whitelist that will allow you to test the APIs in production mode from your own devices and will block API usage accessing someone else's personal data.
3524

3625

3726
- **Mock mode**
3827

3928
You can test your application without the need to have a SIM card from one of our mobile operators. The Sandbox will provide you with a mock response for every API call you make.
4029

41-
The mock mode will also make available for you some APIs that are not still commercially available on our mobile operators, so you can test them in advance.
30+
The mock mode will also make available to you some APIs that are not yet commercially available on our mobile operators, so you can test them in advance.
4231

4332
Check the [Sandbox mock responses](/docs/sandbox/mocks) guide for more information on how to use the mock mode and the mock responses you can expect.
4433

@@ -50,7 +39,7 @@ Open Gateway APIs access is granted to applications, not developers, so every ap
5039

5140
[More information on Privacy](/docs/privacy)
5241

53-
Therefore the way to get credentials to test the APIs is to register an application in the Sandbox console. You will use your application credentials to authenticate your requests to the APIs from any test you code no matter if it is actually a comprehensive application or just a tiny script to run from the a command line interface.
42+
Therefore the way to get credentials to test the APIs is to register an application in the Sandbox console. You will use your application credentials to authenticate your requests to the APIs from any test you code, no matter if it is actually a comprehensive application or just a tiny script to run from a command line interface.
5443

5544
> 📘 How to access the Open Gateway Sandbox
5645
> To use the Sandbox, you must [join the Developer Hub](https://opengateway.telefonica.com/en/developer-hub) and enter in your [private area](https://opengateway.telefonica.com/en/profile/technical-toolbox/sandbox)
@@ -69,22 +58,22 @@ According to the usage modes described [above](#usage-modes)
6958

7059
3. Briefly describe your application as part of the application onboarding process so that mobile operators can understand the purpose of your tests and validate it
7160

72-
Since it is a testing environment, your application won't be rejected as per this information, but our Sandbox uses standard procedures to register applications in the mobile operators' systems which takes this data as mandatory.
61+
Since it is a testing environment, your application won't be rejected based on this information, but our Sandbox uses standard procedures to register applications in the mobile operators' systems which takes this data as mandatory.
7362

7463
These are the fields you need to fill in:
7564

7665
- **Name**: A name to identify your application by the operators as an Open Gateway APIs consumer.
77-
- **Full name**: Your application's commercial name by which operators can find it in your website or application stores.
66+
- **Full name**: Your application's commercial name by which operators can find it on your website or application stores.
7867
- **Description**: A brief description of your application's use case related to the usage of the APIs.
79-
- **Redirect URL**: (Optional) For frontend triggered authorization flows, you must indicate an URI hosted on your servers for the flow to call back to your code for it to complete authorization and perform the service API request (check [frontend triggered authorization flow](/docs/frontend) for detailed information).
68+
- **Redirect URL**: (Optional) For frontend triggered authorization flows, you must indicate a URI hosted on your servers for the flow to call back to your code for it to complete authorization and perform the service API request (check [frontend triggered authorization flow](/docs/frontend) for detailed information).
8069

8170
![App information](https://github.com/Telefonica/opengateway-developers-website/raw/main/v0/gettingstarted/sandbox/images/app-information.png?raw=true)
8271

8372
4. Check the specifications and accept the terms and conditions per API and operator
8473

8574
Each mobile operator has its own terms and conditions for the usage of each API, and its own technical specifications you will want to consider when it comes to consuming them, so you will need to accept them for each API you want to test on each operator you have previously selected.
8675

87-
Since our Sandbox is just a free testing environment, specifications are not binding and conditions are meant for safeguarding privacy, even given that only whitelisted phone numbers can be used when testing in the Production mode with our mobile operators. In the case of the Mock mode, a global simulated operator will provide you with mock responses being the terms and conditions of the program you are member to that applies.
76+
Since our Sandbox is just a free testing environment, specifications are not binding and conditions are meant for safeguarding privacy, even given that only whitelisted phone numbers can be used when testing in the production mode with our mobile operators. In the case of the mock mode, a global simulated operator will provide you with mock responses, and the terms and conditions of the program you are a member of will apply.
8877

8978
![Check specifications and conditions per API and operator](https://github.com/Telefonica/opengateway-developers-website/raw/main/v0/gettingstarted/sandbox/images/app-configuration.png?raw=true)
9079

@@ -103,21 +92,21 @@ To get your application credentials and use them in your prototype, go to the ap
10392

10493
![alt text](https://github.com/Telefonica/opengateway-developers-website/raw/main/v0/gettingstarted/sandbox/images/app-credentials.png?raw=true)
10594

106-
Note that if you selected the Production mode, you will have to wait for the approval of your application by the mobile operators you selected. When your application status is "Completed" you are good to test the APIs with your applications's credentials no matter what end-user phone number you are using. If you only selected the Mock mode, you can start testing right away.
95+
Note that if you selected the production mode, you will have to wait for the approval of your application by the mobile operators you selected. When your application status is "Completed" you are ready to test the APIs with your application's credentials, no matter what end-user phone number you are using. If you only selected the mock mode, you can start testing right away.
10796

10897
## Using the APIs
10998

11099
So far you have used the Sandbox console to register your application as the client to the APIs, which means your application is the entity granted access with its credentials.
111100

112-
> You can use this credentials directly in the [API reference](/reference)
101+
> You can use these credentials directly in the [API reference](/reference)
113102
114-
Now you will use such credentials to effectively consume de APIs from your code. You can use any programming language and any platform that supports HTTP requests, or you can use the Sandbox SDK for convenience. Our Open Gateway Sandbox provides you with a Python SDK and will publish SDKs in other common languages soon.
103+
Now you will use such credentials to effectively consume the APIs from your code. You can use any programming language and any platform that supports HTTP requests, or you can use the Sandbox SDK for convenience. Our Open Gateway Sandbox provides you with a Python SDK and will publish SDKs in other common languages soon.
115104

116105
[Check the pros and cons of using HTTP integration or SDKs to consume the APIs](./sdkreference)
117106

118107
When it comes to our Sandbox's SDK, the following particular considerations apply:
119108
- Once you shift to a Channel Partner in a commercial stage, your production code will need to use their SDKs instead of the Sandbox's one you used for testing and prototyping or, in the worst case, you will have to use the HTTP integration method instead if no SDK is available for your app's language.
120-
- Our Sandbox does not provide a fronted SDK, so if the use case you are prototyping triggers the authorization flow from the end-user device, you will need to implement it by coding HTTP integration. Once you progress to a production stage, you need to check your Channel Partner toolkit offering.
109+
- Our Sandbox does not provide a frontend SDK, so if the use case you are prototyping triggers the authorization flow from the end-user device, you will need to implement it by coding HTTP integration. Once you progress to a production stage, you need to check your Channel Partner toolkit offering.
121110

122111
If you want to integrate the APIs from your code using HTTP requests, you will need to follow the [API integration guide](/docs/apiintegration) to understand the authorization flows and the API reference to know the endpoints and parameters you need to use.
123112

0 commit comments

Comments
 (0)