Skip to content

Commit

Permalink
Merge pull request #6 from hy9be/doc/syntax-highlighting-in-readme
Browse files Browse the repository at this point in the history
Syntax highlighting for README code snippets
  • Loading branch information
ejboucher authored Mar 27, 2024
2 parents 4fcc8cb + 86265df commit 3f3a326
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ These utilities help you authenticate when when making [Amazon Location Service]

After installing the library, import the AuthHelper class in an activity:

```
``` swift
import AmazonLocationiOSAuthSDK
import AWSLocationXCF
```

You can create an AuthHelper and use it with the AWS SDK:

```
``` swift
// Create an authentication helper instance using an Amazon Location API Key
func exampleAPIKeyLogin() {
let authHelper = AuthHelper()
Expand All @@ -29,7 +29,7 @@ func exampleAPIKeyLogin() {
}
```

```
``` swift
// Create an authentication helper using credentials from Cognito
func exampleCognitoLogin() {
let authHelper = AuthHelper()
Expand All @@ -40,7 +40,7 @@ func exampleCognitoLogin() {

You can use the location client to make calls to Amazon Location Service. Here is an example that searches for places near a specified latitude and longitude:

```
``` swift
let searchPlaceIndexForPositionRequest = AWSLocationSearchPlaceIndexForPositionRequest()!

searchPlaceIndexForPositionRequest.indexName = "My-Place-Index-Name"
Expand Down Expand Up @@ -70,4 +70,4 @@ We welcome community contributions and pull requests. See [CONTRIBUTING.md](http

The Amazon Location Service Mobile Authentication SDK for iOS is distributed under the
[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),
see LICENSE.txt and NOTICE.txt for more information.
see LICENSE.txt and NOTICE.txt for more information.

0 comments on commit 3f3a326

Please sign in to comment.