# Quick Start

{% hint style="info" %}
This page helps you get the plugin running as fast as possible. For advanced functionalities we recommend to check the [Complete API](https://gley.gitbook.io/easy-achievements/complete-api).&#x20;
{% endhint %}

Same code works for both Android and iOS platforms.

## Login

{% hint style="info" %}
Call this method only **once** at the beginning of the game to login the user.
{% endhint %}

```csharp
public class Test : MonoBehaviour
{
    void Start()
    {
        Gley.GameServices.API.LogIn();
    }
}
```

## Submit Achievement

```csharp
public class Test : MonoBehaviour
{
    public void SubmitAchievement()
    {
        Gley.GameServices.API.SubmitAchievement(AchievementNames.LowJumper);
    }
}
```

AchievementNames is the enum generated from Settings Window.

## Show achievements UI

This is generated by the store(Google Play/App Store) and it cannot be customized.

```csharp
public class Test : MonoBehaviour
{
    public void ShowAchievementsUI()
    {
        Gley.GameServices.API.ShowAchievementsUI();
    }
}
```

## Submit score

```csharp
public class Test : MonoBehaviour
{
    long score = 100;
    public void SubmitScore()
    {
        Gley.GameServices.API.SubmitScore(score, LeaderboardNames.HighestJumpers);
    }
}
```

## Show leaderboards UI

```csharp
public class Test : MonoBehaviour
{
    public void ShowLeaderboardsUI()
    {
        Gley.GameServices.API.ShowLeaderboadsUI();
    }
}
```

This concludes the Quick Start. Check the Complete API for advanced functionalities.&#x20;

{% hint style="info" %}
For a complete example check the scene included in the package:

**Assets/Gley/GameServices/Example/GameServicesExample.unity**
{% endhint %}
