Skip to content

Commit 1b5d952

Browse files
Merge pull request #295522 from vac0224/vc-operator-look-up-2025-03-08
Remove preview banner, fix include files not displayed
2 parents da2a241 + b8cdb84 commit 1b5d952

File tree

6 files changed

+44
-34
lines changed

6 files changed

+44
-34
lines changed

articles/communication-services/quickstarts/telephony/includes/number-lookup-java.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Get started with the Phone Numbers client library for Java to look up operator information for phone numbers, which can be used to determine whether and how to communicate with that phone number. Follow these steps to install the package and look up operator information about a phone number.
1+
Get started with the Phone Numbers client library for Java to look up operator information for phone numbers. Use the operator information to determine whether and how to communicate with that phone number. Follow these steps to install the package and look up operator information about a phone number.
22

33
> [!NOTE]
4-
> Find the code for this quickstart on [GitHub](https://github.com/Azure-Samples/communication-services-java-quickstarts/tree/main/LookupNumber).
4+
> To view the source code for this example, see [Manage Phone Numbers - Java | GitHub](https://github.com/Azure-Samples/communication-services-java-quickstarts/tree/main/LookupNumber).
55
66
## Prerequisites
77

@@ -44,7 +44,7 @@ The public preview version of the SDK is published to a dev package feed. To con
4444
</repository>
4545
```
4646

47-
You may need to add or edit the `settings.xml` file in `${user.home}/.m2`
47+
You might need to add or edit the `settings.xml` file in `${user.home}/.m2`
4848

4949
```xml
5050
<server>
@@ -72,7 +72,7 @@ Add the following dependency elements to the group of dependencies in the **pom.
7272
<dependency>
7373
<groupId>com.azure</groupId>
7474
<artifactId>azure-communication-phonenumbers</artifactId>
75-
<version>1.2.0-beta.3</version>
75+
<version>1.2.0</version>
7676
</dependency>
7777

7878
<dependency>
@@ -188,7 +188,7 @@ OperatorInformation operatorInfo = result.getValue().getValues().get(0);
188188
```
189189

190190
> [!WARNING]
191-
> Using this functionality will incur a charge to your account.
191+
> Using this function incurs a charge to your account.
192192
193193
### Use operator information
194194

@@ -215,7 +215,7 @@ System.out.println(operatorInfo.getPhoneNumber() + " is a " + numberType + " num
215215
+ operatorInfo.getIsoCountryCode() + " by " + operatorName);
216216
```
217217

218-
You may also use the operator information to determine whether to send an SMS. For more information on sending an SMS, see the [SMS Quickstart](../../sms/send.md).
218+
You can also use the operator information to determine whether to send an SMS. For more information, see [Send an SMS message](../../sms/send.md).
219219

220220
## Run the code
221221

@@ -240,4 +240,4 @@ mvn exec:java -D"exec.mainClass"="com.communication.lookup.quickstart.App" -D"ex
240240

241241
## Sample code
242242

243-
You can download the sample app from [GitHub](https://github.com/Azure-Samples/communication-services-java-quickstarts/tree/main/LookupNumber).
243+
You can download the sample app from [Manage Phone Numbers - Java | GitHub](https://github.com/Azure-Samples/communication-services-java-quickstarts/tree/main/LookupNumber).

articles/communication-services/quickstarts/telephony/includes/number-lookup-js.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Get started with the Phone Numbers client library for JavaScript to look up operator information for phone numbers, which can be used to determine whether and how to communicate with that phone number. Follow these steps to install the package and look up operator information about a phone number.
1+
Get started with the Phone Numbers client library for JavaScript to look up operator information for phone numbers. Use the operator information to determine whether and how to communicate with that phone number. Follow these steps to install the package and look up operator information about a phone number.
22

33
> [!NOTE]
4-
> Find the code for this quickstart on [GitHub](https://github.com/Azure-Samples/communication-services-javascript-quickstarts/tree/main/lookup-phone-number).
4+
> To view the source code for this example, see [Manage Phone Numbers - JavaScript | GitHub](https://github.com/Azure-Samples/communication-services-javascript-quickstarts/tree/main/lookup-phone-number).
55
66
## Prerequisites
77

@@ -46,7 +46,7 @@ main();
4646
Use the `npm install` command to install the Azure Communication Services Phone Numbers client library for JavaScript.
4747

4848
```console
49-
npm install @azure/[email protected]-beta.4 --save
49+
npm install @azure/[email protected] --save
5050
```
5151

5252
The `--save` option adds the library as a dependency in your **package.json** file.
@@ -91,7 +91,7 @@ let searchResults = await phoneNumbersClient.searchOperatorInformation([ "<targe
9191
```
9292

9393
> [!WARNING]
94-
> Using this functionality will incur a charge to your account.
94+
> Using this function incurs a charge to your account.
9595
9696
### Use operator information
9797

@@ -112,7 +112,7 @@ console.log(operatorInfo.phoneNumber + " is a " + (operatorInfo.numberType ? ope
112112
+ operatorInfo.isoCountryCode + " by " + (operatorInfo.operatorDetails.name ? operatorInfo.operatorDetails.name : "an unknown operator"));
113113
```
114114

115-
You may also use the operator information to determine whether to send an SMS. For more information on sending an SMS, see the [SMS Quickstart](../../sms/send.md).
115+
You can also use the operator information to determine whether to send an SMS. For more information, see [Send an SMS message](../../sms/send.md).
116116

117117
## Run the code
118118

@@ -124,4 +124,4 @@ node number-lookup-quickstart.js
124124

125125
## Sample code
126126

127-
You can download the sample app from [GitHub](https://github.com/Azure-Samples/communication-services-javascript-quickstarts/tree/main/lookup-phone-number)).
127+
You can download the sample app from [Manage Phone Numbers - JavaScript | GitHub](https://github.com/Azure-Samples/communication-services-javascript-quickstarts/tree/main/lookup-phone-number)).

articles/communication-services/quickstarts/telephony/includes/number-lookup-net.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Get started with the Phone Numbers client library for C# to look up operator information for phone numbers, which can be used to determine whether and how to communicate with that phone number. Follow these steps to install the package and look up operator information about a phone number.
1+
Get started with the Phone Numbers client library for C# to look up operator information for phone numbers. Use the operator information to determine whether and how to communicate with that phone number. Follow these steps to install the package and look up operator information about a phone number.
22

33
> [!NOTE]
4-
> Find the code for this quickstart on [GitHub](https://github.com/Azure-Samples/communication-services-dotnet-quickstarts/tree/main/LookupNumber).
4+
> To view the source code for this example, see [Manage Phone Numbers - C# | GitHub](https://github.com/Azure-Samples/communication-services-dotnet-quickstarts/tree/main/LookupNumber).
55
66
## Prerequisites
77

@@ -46,7 +46,7 @@ More detailed information and other options for connecting to the dev feed can b
4646
While still in the application directory, install the Azure Communication Services PhoneNumbers client library for .NET package by using the following command.
4747

4848
```console
49-
dotnet add package Azure.Communication.PhoneNumbers --version 1.3.0-beta.5
49+
dotnet add package Azure.Communication.PhoneNumbers --version 1.3.0
5050
```
5151

5252
Add a `using` directive to the top of **Program.cs** to include the `Azure.Communication` namespace.
@@ -114,7 +114,7 @@ OperatorInformationResult searchResult = await client.SearchOperatorInformationA
114114
```
115115

116116
> [!WARNING]
117-
> Using this functionality will incur a charge to your account.
117+
> Using this function incurs a charge to your account.
118118
119119
### Use operator information
120120

@@ -134,7 +134,7 @@ OperatorInformation operatorInformation = searchResult.Values[0];
134134
Console.WriteLine($"{operatorInformation.PhoneNumber} is a {operatorInformation.NumberType ?? "unknown"} number, operated in {operatorInformation.IsoCountryCode} by {operatorInformation.OperatorDetails.Name ?? "an unknown operator"}");
135135
```
136136

137-
You may also use the operator information to determine whether to send an SMS. For more information on sending an SMS, see the [SMS Quickstart](../../sms/send.md).
137+
You can also use the operator information to determine whether to send an SMS. For more information about sending an SMS, see [Send an SMS message](../../sms/send.md).
138138

139139
## Run the code
140140

@@ -146,4 +146,4 @@ dotnet run --interactive
146146

147147
## Sample code
148148

149-
You can download the sample app from [GitHub](https://github.com/Azure-Samples/communication-services-dotnet-quickstarts/tree/main/LookupNumber).
149+
You can download the sample app from [Manage Phone Numbers - C# | GitHub](https://github.com/Azure-Samples/communication-services-dotnet-quickstarts/tree/main/LookupNumber).

articles/communication-services/quickstarts/telephony/includes/number-lookup-python.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Get started with the Phone Numbers client library for Python to look up operator information for phone numbers, which can be used to determine whether and how to communicate with that phone number. Follow these steps to install the package and look up operator information about a phone number.
1+
Get started with the Phone Numbers client library for Python to look up operator information for phone numbers. Use the operator information to determine whether and how to communicate with that phone number. Follow these steps to install the package and look up operator information about a phone number.
22

33
> [!NOTE]
4-
> Find the code for this quickstart on [GitHub](https://github.com/Azure-Samples/communication-services-python-quickstarts/tree/main/lookup-phone-numbers-quickstart).
4+
> To view the source code for this example, see [Manage Phone Numbers - Python | GitHub](https://github.com/Azure-Samples/communication-services-python-quickstarts/tree/main/lookup-phone-numbers-quickstart).
55
66
## Prerequisites
77

@@ -44,7 +44,7 @@ except Exception as ex:
4444
While still in the application directory, install the Azure Communication Services PhoneNumbers client library for Python package by using the `pip install` command.
4545

4646
```console
47-
pip install azure-communication-phonenumbers==1.2.0b2
47+
pip install azure-communication-phonenumbers==1.2.0
4848
```
4949

5050
## Code examples
@@ -107,11 +107,11 @@ To search for a phone number's operator information, call `search_operator_infor
107107

108108
```python
109109
options = { "include_additional_operator_details": True }
110-
operator_results = phone_numbers_client.search_operator_information("<target-phone-number>", options)
110+
operator_results = phone_numbers_client.search_operator_information("<target-phone-number>", options=options)
111111
```
112112

113113
> [!WARNING]
114-
> Using this functionality will incur a charge to your account.
114+
> Using this function incurs a charge to your account.
115115
116116
### Use operator information
117117

@@ -138,7 +138,7 @@ else:
138138
print(str.format("{0} is a {1} number, operated in {2} by {3}", operator_information.phone_number, number_type, operator_information.iso_country_code, operator_name))
139139
```
140140

141-
You may also use the operator information to determine whether to send an SMS. For more information on sending an SMS, see the [SMS Quickstart](../../sms/send.md).
141+
You can also use the operator information to determine whether to send an SMS. For more information about sending an SMS, see [Send an SMS message](../../sms/send.md).
142142

143143
## Run the code
144144

@@ -150,4 +150,4 @@ python number_lookup_sample.py
150150

151151
## Sample code
152152

153-
You can download the sample app from [GitHub](https://github.com/Azure-Samples/communication-services-python-quickstarts/tree/main/lookup-phone-numbers-quickstart).
153+
You can download the sample app from [Manage Phone Numbers - Python | GitHub](https://github.com/Azure-Samples/communication-services-python-quickstarts/tree/main/lookup-phone-numbers-quickstart).

articles/communication-services/quickstarts/telephony/number-lookup.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Quickstart - Look up operator information for a phone number using Azure Communication Services
3-
description: Learn how to look up operator information for any phone number using Azure Communication Services.
2+
title: Look up operator information for a phone number using Azure Communication Services
3+
description: This article describes how to look up operator information for any phone number using Azure Communication Services.
44
services: azure-communication-services
55
author: ericasp
66
manager: danielav
@@ -13,9 +13,7 @@ ms.author: ericasp
1313
zone_pivot_groups: acs-js-csharp-java-python
1414
---
1515

16-
# Quickstart: Look up operator information for a phone number using Azure Communication Services
17-
18-
[!INCLUDE [Public Preview Notice](../../includes/public-preview-include.md)]
16+
# Look up operator information for a phone number using Azure Communication Services
1917

2018
::: zone pivot="programming-language-javascript"
2119
[!INCLUDE [JavaScript](./includes/number-lookup-js.md)]
@@ -37,12 +35,12 @@ zone_pivot_groups: acs-js-csharp-java-python
3735

3836
Common questions and issues:
3937

40-
- Changes to environment variables may not take effect in programs that are already running. If you notice your environment variables aren't working as expected, try closing and reopening any programs you're using to run and edit code.
41-
- The data returned by this endpoint is subject to various international laws and regulations, therefore the accuracy of the results depends on several factors. These factors include whether the number was ported, the country code, and the approval status of the caller. Based on these factors, operator information may not be available for some phone numbers or may reflect the original operator of the phone number, not the current operator.
38+
- Changes to environment variables might not take effect in programs that are already running. If you notice your environment variables aren't working as expected, try closing and reopening any programs you're using to run and edit code.
39+
- The data returned by this endpoint is subject to various international laws and regulations, therefore the accuracy of the results depends on several factors. These factors include whether the number was ported, the country code, and the approval status of the caller. Based on these factors, operator information might not be available for some phone numbers or could reflect the original operator of the phone number, not the current operator.
4240

4341
## Next steps
4442

45-
In this quickstart you learned how to:
43+
This article described how to:
4644
> [!div class="checklist"]
4745
> * Look up number formatting
4846
> * Look up operator information for a phone number

articles/zone-pivot-groups.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,18 @@ groups:
517517
title: JavaScript
518518
- id: programming-language-java
519519
title: Java
520+
- id: acs-js-csharp-java-python
521+
title: Programming languages
522+
prompt: Choose a programming language
523+
pivots:
524+
- id: programming-language-javascript
525+
title: JavaScript
526+
- id: programming-language-csharp
527+
title: C#
528+
- id: programming-language-java
529+
title: Java
530+
- id: programming-language-python
531+
title: Python
520532
- id: acs-js-csharp-java-python-azcli-ps
521533
title: Programming languages
522534
prompt: Choose a programming language

0 commit comments

Comments
 (0)