I'm trying to build a URL using a uri Builder and extract data out of a json file using Volley from a differemt Endpoint. My Url looks like this //http://api.themoviedb.org/3/movie/157336/videos?api_key=###. I'm not sure if im doing it properl because i'm getting a bad request 400 so i suspect that there is something i'm missing.
Intent intent = getIntent();
String movieId = intent.getStringExtra(Constants.MOVIE_ID);
Uri.Builder builder = new Uri.Builder();
builder.scheme("http")
.authority("api.themoviedb.org/3/movies/")
.appendPath(movieId)
.appendPath("videos")
.appendQueryParameter("api_key", BuildConfig.ApiKey);
String myUrl = builder.build().toString();