api no longer updates after certain ammount of time #652
Unanswered
halal-beef
asked this question in
Q&A
Replies: 1 comment
-
This does not sound like a problem in the API itself but rather in your logic. Double check if refreshing the access token works and if all the timers correctly fire. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
when i leave my program for around 10-15 minutes the api dissconnects and will no longer update not even the music progress :(
ill share code i dont know what i did wrong
`using SpotifyAPI.Web;
using SpotifyAPI.Web.Models;
using System;
using System.Diagnostics;
using System.Threading;
using System.Timers;
using System.Windows;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Imaging;
using System.Windows.Threading;
namespace minify
{
}
`
`using SpotifyAPI.Web;
using SpotifyAPI.Web.Models;
using System;
using System.Collections.Generic;
namespace minify
{
class Spotify
{
public static void UserTrackSuggestion()
{
try
{
var _spotify = new SpotifyWebAPI
{
AccessToken = (string)App.Current.Properties["AccessToken"],
TokenType = (string)App.Current.Properties["TokenType"]
};
}
`
Beta Was this translation helpful? Give feedback.
All reactions