SamoChat API
Search…
SamoChat API
Introduction
Authentication
Endpoints
Powered By
GitBook
Endpoints
Here you will find all the endpoints and their examples.
get
https://api.samochat.net
/profile/:username
Profile endpoint
The username of a profile can be found in the url. Eg.
samochat.net/profile/samochat
cURL
.NET library
Python library
1
curl --location -g --request GET 'api.samochat.net/profile/:username' \
2
--header 'Content-Type: application/json' \
3
--header 'Authorization: {access_token}'
Copied!
1
using
SamoChatNet
;
2
3
SamoChatConfig
.
ClientID
=
"ClientID"
;
4
SamoChatConfig
.
ClientSecret
=
"ClientSecret"
;
5
6
//Declares the instance
7
SamoChatData
data
=
new
SamoChatData
();
8
9
data
.
GetProfile
(
"SamoChat"
);
Copied!
1
import
samochat
2
3
samochat
.
client_id
=
"client_id"
4
samochat
.
client_secret
=
"client_secret"
5
6
# Declares the instance
7
data
=
SamochatData
()
8
9
data
.
get_profile
(
"SamoChat"
)
10
Copied!
get
https://api.samochat.net
/profile/:username/timeline
Timeline endpoint
cURL
.NET library
Python library
1
curl --location -g --request GET 'api.samochat.net/profile/:username/timeline' \
2
--header 'Content-Type: application/json' \
3
--header 'Authorization: access_token'
Copied!
1
using
SamoChatNet
2
SamoChatConfig
.
ClientID
=
"ClientID"
;
3
SamoChatConfig
.
ClientSecret
=
"ClientSecret"
;
4
5
//Declares the instance
6
SamoChatData
data
=
new
SamoChatData
();
7
8
data
.
GetPosts
(
"SamoChat"
);
Copied!
1
import
samochat
2
3
samochat
.
client_id
=
"client_id"
4
samochat
.
client_secret
=
"client_secret"
5
6
# Declares the instance
7
data
=
SamochatData
()
8
9
data
.
get_posts
(
"SamoChat"
)
Copied!
get
https://api.samochat.net
/user/:username?query=name
Name endpoint
cURL
.NET library
Python library
1
curl --location -g --request GET 'api.samochat.net/user/:username?query=name' \
2
--header 'Content-Type: application/json' \
3
--header 'Authorization: {access_token}'
Copied!
1
using
SamoChatNet
;
2
3
SamoChatConfig
.
ClientID
=
"ClientID"
;
4
SamoChatConfig
.
ClientSecret
=
"ClientSecret"
;
5
6
//Declares the instance
7
SamoChatData
data
=
new
SamoChatData
();
8
9
data
.
GetName
(
"SamoChat"
);
Copied!
1
import
samochat
2
3
samochat
.
client_id
=
"client_id"
4
samochat
.
client_secret
=
"client_secret"
5
6
# Declares the instance
7
data
=
SamochatData
()
8
9
data
.
get_name
(
"SamoChat"
)
Copied!
get
https://api.samochat.net
/user/:username?query=age
Age endpoint
cURL
.NET library
Python library
1
curl --location -g --request GET 'api.samochat.net/user/:username?query=age' \
2
--header 'Content-Type: application/json' \
3
--header 'Authorization: {access_token}'
Copied!
1
using
SamoChatNet
;
2
3
SamoChatConfig
.
ClientID
=
"ClientID"
;
4
SamoChatConfig
.
ClientSecret
=
"ClientSecret"
;
5
6
//Declares the instance
7
SamoChatData
data
=
new
SamoChatData
();
8
9
data
.
GetAge
(
"SamoChat"
);
Copied!
1
import
samochat
2
3
samochat
.
client_id
=
"client_id"
4
samochat
.
client_secret
=
"client_secret"
5
6
# Declares the instance
7
data
=
SamochatData
()
8
9
data
.
get_age
(
"SamoChat"
)
Copied!
get
https://api.samochat.net
/user/:username?query=gender
Gender endpoint
cURL
.NET library
Python library
1
curl --location -g --request GET 'api.samochat.net/user/:username?query=gender' \
2
--header 'Content-Type: application/json' \
3
--header 'Authorization: {access_token}'
Copied!
1
using
SamoChatNet
;
2
3
SamoChatConfig
.
ClientID
=
"ClientID"
;
4
SamoChatConfig
.
ClientSecret
=
"ClientSecret"
;
5
6
//Declares the instance
7
SamoChatData
data
=
new
SamoChatData
();
8
9
data
.
GetGender
(
"SamoChat"
);
Copied!
1
import
samochat
2
3
samochat
.
client_id
=
"client_id"
4
samochat
.
client_secret
=
"client_secret"
5
6
# Declares the instance
7
data
=
SamochatData
()
8
9
data
.
get_gender
(
"SamoChat"
)
Copied!
get
https://api.samochat.net
/user/:username?query=location
Location endpoint
cURL
.NET library
Python library
1
curl --location -g --request GET 'api.samochat.net/user/:username?query=location' \
2
--header 'Content-Type: application/json' \
3
--header 'Authorization: {access_token}'
Copied!
1
using
SamoChatNet
;
2
3
SamoChatConfig
.
ClientID
=
"ClientID"
;
4
SamoChatConfig
.
ClientSecret
=
"ClientSecret"
;
5
6
//Declares the instance
7
SamoChatData
data
=
new
SamoChatData
();
8
9
data
.
GetLocation
(
"SamoChat"
);
Copied!
1
import
samochat
2
3
samochat
.
client_id
=
"client_id"
4
samochat
.
client_secret
=
"client_secret"
5
6
# Declares the instance
7
data
=
SamochatData
()
8
9
data
.
get_location
(
"SamoChat"
)
Copied!
get
https://api.samochat.net
/user/:username?query=samocredits
SamoCredits endpoint
cURL
.NET library
Python library
1
curl --location -g --request GET 'api.samochat.net/user/:username?query=SamoCredits' \
2
--header 'Content-Type: application/json' \
3
--header 'Authorization: {access_token}'
Copied!
1
using
SamoChatNet
;
2
3
SamoChatConfig
.
ClientID
=
"ClientID"
;
4
SamoChatConfig
.
ClientSecret
=
"ClientSecret"
;
5
6
//Declares the instance
7
SamoChatData
data
=
new
SamoChatData
();
8
9
data
.
GetSamoCredits
(
"SamoChat"
);
Copied!
1
import
samochat
2
3
samochat
.
client_id
=
"client_id"
4
samochat
.
client_secret
=
"client_secret"
5
6
# Declares the instance
7
data
=
SamochatData
()
8
9
data
.
get_samocredits
(
"SamoChat"
)
Copied!
get
https://api.samochat.net
/user/:username?query=rank
Rank endpoint
cURL
.NET library
Python library
1
curl --location -g --request GET 'api.samochat.net/user/:username?query=rank' \
2
--header 'Content-Type: application/json' \
3
--header 'Authorization: {access_token}'
Copied!
1
using
SamoChatNet
;
2
3
SamoChatConfig
.
ClientID
=
"ClientID"
;
4
SamoChatConfig
.
ClientSecret
=
"ClientSecret"
;
5
6
//Declares the instance
7
SamoChatData
data
=
new
SamoChatData
();
8
9
data
.
GetRank
(
"SamoChat"
);
Copied!
1
import
samochat
2
3
samochat
.
client_id
=
"client_id"
4
samochat
.
client_secret
=
"client_secret"
5
6
# Declares the instance
7
data
=
SamochatData
()
8
9
data
.
get_rank
"SamoChat"
)
Copied!
get
https://api.samochat.net
/user/:username?query=videos
Videos endpoint
cURL
.NET library
Python library
1
curl --location -g --request GET 'api.samochat.net/user/:username?query=videos' \
2
--header 'Content-Type: application/json' \
3
--header 'Authorization: {access_token}'
Copied!
1
using
SamoChatNet
;
2
3
SamoChatConfig
.
ClientID
=
"ClientID"
;
4
SamoChatConfig
.
ClientSecret
=
"ClientSecret"
;
5
6
//Declares the instance
7
SamoChatData
data
=
new
SamoChatData
();
8
9
data
.
GetVideos
(
"SamoChat"
);
Copied!
1
import
samochat
2
3
samochat
.
client_id
=
"client_id"
4
samochat
.
client_secret
=
"client_secret"
5
6
# Declares the instance
7
data
=
SamochatData
()
8
9
data
.
get_videos
(
"SamoChat"
)
Copied!
get
https://api.samochat.net
/user/:username?query=photos
Photos endpoint
cURL
.NET library
Python library
1
curl --location -g --request GET 'api.samochat.net/user/:username?query=photos' \
2
--header 'Content-Type: application/json' \
3
--header 'Authorization: {access_token}'
Copied!
1
using
SamoChatNet
;
2
3
SamoChatConfig
.
ClientID
=
"ClientID"
;
4
SamoChatConfig
.
ClientSecret
=
"ClientSecret"
;
5
6
//Declares the instance
7
SamoChatData
data
=
new
SamoChatData
();
8
9
data
.
GetPhotos
(
"SamoChat"
);
Copied!
1
import
samochat
2
3
samochat
.
client_id
=
"client_id"
4
samochat
.
client_secret
=
"client_secret"
5
6
# Declares the instance
7
data
=
SamochatData
()
8
9
data
.
get_photos
(
"SamoChat"
)
Copied!
get
https://api.samochat.net
/user/:username?query=joined
Joined endpoint
cURL
.NET library
Python library
1
curl --location -g --request GET 'api.samochat.net/user/:username?query=joined' \
2
--header 'Content-Type: application/json' \
3
--header 'Authorization: {access_token}'
Copied!
1
using
SamoChatNet
;
2
3
SamoChatConfig
.
ClientID
=
"ClientID"
;
4
SamoChatConfig
.
ClientSecret
=
"ClientSecret"
;
5
6
//Declares the instance
7
SamoChatData
data
=
new
SamoChatData
();
8
9
data
.
GetJoined
(
"SamoChat"
);
Copied!
1
import
samochat
2
3
samochat
.
client_id
=
"client_id"
4
samochat
.
client_secret
=
"client_secret"
5
6
# Declares the instance
7
data
=
SamochatData
()
8
9
data
.
get_joined
(
"SamoChat"
)
Copied!
get
https://api.samochat.net
/user/:username?query=about
About endpoint
cURL
.NET library
Python library
1
curl --location -g --request GET 'api.samochat.net/user/:username?query=about' \
2
--header 'Content-Type: application/json' \
3
--header 'Authorization: {access_token}'
Copied!
1
using
SamoChatNet
;
2
3
SamoChatConfig
.
ClientID
=
"ClientID"
;
4
SamoChatConfig
.
ClientSecret
=
"ClientSecret"
;
5
6
//Declares the instance
7
SamoChatData
data
=
new
SamoChatData
();
8
9
data
.
GetAbout
(
"SamoChat"
);
Copied!
1
import
samochat
2
3
samochat
.
client_id
=
"client_id"
4
samochat
.
client_secret
=
"client_secret"
5
6
# Declares the instance
7
data
=
SamochatData
()
8
9
data
.
get_about
(
"SamoChat"
)
Copied!
Previous
Authentication
Last modified
3mo ago
Copy link
Contents
get
Profile endpoint
get
Timeline endpoint
get
Name endpoint
get
Age endpoint
get
Gender endpoint
get
Location endpoint
get
SamoCredits endpoint
get
Rank endpoint
get
Videos endpoint
get
Photos endpoint
get
Joined endpoint
get
About endpoint