internal/stubs/users.go   A
last analyzed

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
dl 0
loc 5
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A stubs.UsersMeResponse 0 2 1
1
package stubs
2
3
// UsersMeResponse is the response from the GET /v1/users/me endpoint
4
func UsersMeResponse() []byte {
5
	return []byte(`
6
{
7
  "jsonapi": {
8
    "version": "1.0"
9
  },
10
  "links": {
11
    "self": "https://api.lemonsqueezy.com/v1/users/1"
12
  },
13
  "data": {
14
    "type": "users",
15
    "id": "1",
16
    "attributes": {
17
      "name": "Darlene Daugherty",
18
      "email": "[email protected]",
19
      "color": "#898FA9",
20
      "avatar_url": "https://www.gravatar.com/avatar/1ace5b3965c59dbcd1db79d85da75048?d=blank",
21
      "has_custom_avatar": false,
22
      "createdAt": "2021-05-24T14:08:31.000000Z",
23
      "updatedAt": "2021-08-26T13:24:54.000000Z"
24
    },
25
    "links": {
26
      "self": "https://api.lemonsqueezy.com/v1/users/1"
27
    }
28
  }
29
}
30
`)
31
}
32