def index(request):
    api = InstagramAPI("jayabal.al", "jayabal9890@insta")
    if (api.login()):
        api.getSelfUserFeed()
        return JsonResponse(api.LastJson)

    return JsonResponse({})
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Use text editor to edit the script and type in valid Instagram username/password

from InstagramAPI.InstagramAPI import InstagramAPI

api = InstagramAPI("jayabal.al", "jayabal9890@insta")
if (api.login()):
    api.getSelfUserFeed()  # get self user feed
    print(api.LastJson)  # print last response JSON
    print("Login succes!")
else:
    print("Can't login!")